public NamespaceMeta buildWithoutKeytabURIVersion() { if (name == null) { throw new IllegalArgumentException("Namespace id cannot be null."); } if (description == null) { description = ""; } // scheduler queue name is kept non nullable unlike others like root directory, hbase namespace etc for backward // compatibility if (schedulerQueueName == null) { schedulerQueueName = ""; } return new NamespaceMeta(name, description, new NamespaceConfig(schedulerQueueName, rootDirectory, hbaseNamespace, hiveDatabase, principal, groupName, keytabURIWithoutVersion, exploreAsPrincipal)); } }
public NamespaceMeta buildWithoutKeytabURIVersion() { if (name == null) { throw new IllegalArgumentException("Namespace id cannot be null."); } if (description == null) { description = ""; } // scheduler queue name is kept non nullable unlike others like root directory, hbase namespace etc for backward // compatibility if (schedulerQueueName == null) { schedulerQueueName = ""; } return new NamespaceMeta(name, description, new NamespaceConfig(schedulerQueueName, rootDirectory, hbaseNamespace, hiveDatabase, principal, groupName, keytabURIWithoutVersion, exploreAsPrincipal)); } }
public NamespaceMeta build() { if (name == null) { throw new IllegalArgumentException("Namespace id cannot be null."); } if (description == null) { description = ""; } // scheduler queue name is kept non nullable unlike others like root directory, hbase namespace etc for backward // compatibility if (schedulerQueueName == null) { schedulerQueueName = ""; } // combine the keytab URI with the version if the version is not 0 String uri = keytabURIVersion == 0 ? keytabURIWithoutVersion : keytabURIWithoutVersion + "#" + keytabURIVersion; return new NamespaceMeta(name, description, new NamespaceConfig(schedulerQueueName, rootDirectory, hbaseNamespace, hiveDatabase, principal, groupName, uri, exploreAsPrincipal)); }
public NamespaceMeta build() { if (name == null) { throw new IllegalArgumentException("Namespace id cannot be null."); } if (description == null) { description = ""; } // scheduler queue name is kept non nullable unlike others like root directory, hbase namespace etc for backward // compatibility if (schedulerQueueName == null) { schedulerQueueName = ""; } // combine the keytab URI with the version if the version is not 0 String uri = keytabURIVersion == 0 ? keytabURIWithoutVersion : keytabURIWithoutVersion + "#" + keytabURIVersion; return new NamespaceMeta(name, description, new NamespaceConfig(schedulerQueueName, rootDirectory, hbaseNamespace, hiveDatabase, principal, groupName, uri, exploreAsPrincipal)); }