/** * Creates HBase namespace for the cdap system namespace. */ private void createSystemHBaseNamespace() { HBaseTableUtil tableUtil = new HBaseTableUtilFactory(cConf).get(); try (HBaseDDLExecutor ddlExecutor = new HBaseDDLExecutorFactory(cConf, hConf).get()) { ddlExecutor.createNamespaceIfNotExists(tableUtil.getHBaseNamespace(NamespaceId.SYSTEM)); } catch (IOException e) { throw Throwables.propagate(e); } }
private void createNamespace(String namespace) throws IOException { String hbaseNamespace = getTableUtil().getHBaseNamespace(new NamespaceId(namespace)); ddlExecutor.createNamespaceIfNotExists(hbaseNamespace); }
boolean created = executor.createNamespaceIfNotExists(hbaseNamespace); if (namespaceMeta.getConfig().getGroupName() != null) { try {
boolean created = executor.createNamespaceIfNotExists(hbaseNamespace); if (namespaceMeta.getConfig().getGroupName() != null) { try {