Class MetastoreKerberosConfig
java.lang.Object
io.trino.plugin.hive.metastore.thrift.MetastoreKerberosConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull String@NotNull String@AssertTrue(message="Exactly one of `hive.metastore.client.keytab` or `hive.metastore.client.credential-cache.location` must be specified") booleansetHiveMetastoreClientCredentialCacheLocation(String hiveMetastoreCredentialCachePath) setHiveMetastoreClientKeytab(String hiveMetastoreClientKeytab) setHiveMetastoreClientPrincipal(String hiveMetastoreClientPrincipal) setHiveMetastoreServicePrincipal(String hiveMetastoreServicePrincipal)
-
Constructor Details
-
MetastoreKerberosConfig
public MetastoreKerberosConfig()
-
-
Method Details
-
getHiveMetastoreServicePrincipal
-
setHiveMetastoreServicePrincipal
@Config("hive.metastore.service.principal") public MetastoreKerberosConfig setHiveMetastoreServicePrincipal(String hiveMetastoreServicePrincipal) -
getHiveMetastoreClientPrincipal
-
setHiveMetastoreClientPrincipal
@Config("hive.metastore.client.principal") public MetastoreKerberosConfig setHiveMetastoreClientPrincipal(String hiveMetastoreClientPrincipal) -
getHiveMetastoreClientKeytab
-
setHiveMetastoreClientKeytab
@Config("hive.metastore.client.keytab") public MetastoreKerberosConfig setHiveMetastoreClientKeytab(String hiveMetastoreClientKeytab) -
getHiveMetastoreClientCredentialCacheLocation
-
setHiveMetastoreClientCredentialCacheLocation
@Config("hive.metastore.client.credential-cache.location") public MetastoreKerberosConfig setHiveMetastoreClientCredentialCacheLocation(String hiveMetastoreCredentialCachePath) -
isConfigValid
@AssertTrue(message="Exactly one of `hive.metastore.client.keytab` or `hive.metastore.client.credential-cache.location` must be specified") public @AssertTrue(message="Exactly one of `hive.metastore.client.keytab` or `hive.metastore.client.credential-cache.location` must be specified") boolean isConfigValid()
-