builder.append("='").append(namespaceConfig.getKeytabURI()).append("', "); if (namespaceConfig.getGroupName() != null) { builder.append(ArgumentName.NAMESPACE_GROUP_NAME); builder.append("='").append(namespaceConfig.getGroupName()).append("', ");
builder.append("='").append(namespaceConfig.getKeytabURI()).append("', "); if (namespaceConfig.getGroupName() != null) { builder.append(ArgumentName.NAMESPACE_GROUP_NAME); builder.append("='").append(namespaceConfig.getGroupName()).append("', ");
if (namespaceMeta.getConfig().getGroupName() != null) { String groupName = customNamespacedLocation.getGroup(); String permissions = customNamespacedLocation.getPermissions().substring(3, 6); if (!groupName.equals(namespaceMeta.getConfig().getGroupName())) { LOG.warn("The provided home directory '{}' for namespace '{}' has group '{}', which is different from " + "the configured group '{}' of the namespace.", customNamespacedLocation.toString(), namespaceMeta.getNamespaceId(), groupName, namespaceMeta.getConfig().getGroupName());
if (namespaceMeta.getConfig().getGroupName() != null) { String groupName = customNamespacedLocation.getGroup(); String permissions = customNamespacedLocation.getPermissions().substring(3, 6); if (!groupName.equals(namespaceMeta.getConfig().getGroupName())) { LOG.warn("The provided home directory '{}' for namespace '{}' has group '{}', which is different from " + "the configured group '{}' of the namespace.", customNamespacedLocation.toString(), namespaceMeta.getNamespaceId(), groupName, namespaceMeta.getConfig().getGroupName());
try (HBaseDDLExecutor executor = hBaseDDLExecutorFactory.get()) { boolean created = executor.createNamespaceIfNotExists(hbaseNamespace); if (namespaceMeta.getConfig().getGroupName() != null) { try { executor.grantPermissions(hbaseNamespace, null, ImmutableMap.of("@" + namespaceMeta.getConfig().getGroupName(), "C")); } catch (IOException | RuntimeException e) {
try (HBaseDDLExecutor executor = hBaseDDLExecutorFactory.get()) { boolean created = executor.createNamespaceIfNotExists(hbaseNamespace); if (namespaceMeta.getConfig().getGroupName() != null) { try { executor.grantPermissions(hbaseNamespace, null, ImmutableMap.of("@" + namespaceMeta.getConfig().getGroupName(), "C")); } catch (IOException | RuntimeException e) {
String configuredGroupName = namespaceMeta.getConfig().getGroupName(); boolean createdData = false; boolean createdTemp = false;
public Builder(NamespaceMeta meta) { this.name = meta.getName(); this.description = meta.getDescription(); NamespaceConfig config = meta.getConfig(); if (config != null) { this.schedulerQueueName = config.getSchedulerQueueName(); this.rootDirectory = config.getRootDirectory(); this.hbaseNamespace = config.getHbaseNamespace(); this.hiveDatabase = config.getHiveDatabase(); this.principal = config.getPrincipal(); this.groupName = config.getGroupName(); this.keytabURIWithoutVersion = config.getKeytabURIWithoutVersion(); this.keytabURIVersion = config.getKeytabURIVersion(); this.exploreAsPrincipal = config.isExploreAsPrincipal(); } }
public Builder(NamespaceMeta meta) { this.name = meta.getName(); this.description = meta.getDescription(); NamespaceConfig config = meta.getConfig(); if (config != null) { this.schedulerQueueName = config.getSchedulerQueueName(); this.rootDirectory = config.getRootDirectory(); this.hbaseNamespace = config.getHbaseNamespace(); this.hiveDatabase = config.getHiveDatabase(); this.principal = config.getPrincipal(); this.groupName = config.getGroupName(); this.keytabURIWithoutVersion = config.getKeytabURIWithoutVersion(); this.keytabURIVersion = config.getKeytabURIVersion(); this.exploreAsPrincipal = config.isExploreAsPrincipal(); } }
String configuredGroupName = namespaceMeta.getConfig().getGroupName(); boolean createdData = false; boolean createdTemp = false;