Class SparkMetastoreSpec
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.SparkMetastoreSpec
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SparkMetastoreSpec>
public final class SparkMetastoreSpec
extends Object
implements com.azure.json.JsonSerializable<SparkMetastoreSpec>
The metastore specification for Spark cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database.dbName()Get the dbName property: The database name.Get the dbPasswordSecretName property: The secret name which contains the database user password.Get the dbServerHost property: The database server host.Get the dbUsername property: The database user name.static SparkMetastoreSpecfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SparkMetastoreSpec from the JsonReader.Get the keyVaultId property: The key vault resource id.Get the thriftUrl property: The thrift url.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDbConnectionAuthenticationMode(DbConnectionAuthenticationMode dbConnectionAuthenticationMode) Set the dbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database.withDbName(String dbName) Set the dbName property: The database name.withDbPasswordSecretName(String dbPasswordSecretName) Set the dbPasswordSecretName property: The secret name which contains the database user password.withDbServerHost(String dbServerHost) Set the dbServerHost property: The database server host.withDbUsername(String dbUsername) Set the dbUsername property: The database user name.withKeyVaultId(String keyVaultId) Set the keyVaultId property: The key vault resource id.withThriftUrl(String thriftUrl) Set the thriftUrl property: The thrift url.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SparkMetastoreSpec
public SparkMetastoreSpec()Creates an instance of SparkMetastoreSpec class.
-
-
Method Details
-
dbServerHost
Get the dbServerHost property: The database server host.- Returns:
- the dbServerHost value.
-
withDbServerHost
Set the dbServerHost property: The database server host.- Parameters:
dbServerHost- the dbServerHost value to set.- Returns:
- the SparkMetastoreSpec object itself.
-
dbName
-
withDbName
Set the dbName property: The database name.- Parameters:
dbName- the dbName value to set.- Returns:
- the SparkMetastoreSpec object itself.
-
dbConnectionAuthenticationMode
Get the dbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database. More details: https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#authentication-and-authorization.- Returns:
- the dbConnectionAuthenticationMode value.
-
withDbConnectionAuthenticationMode
public SparkMetastoreSpec withDbConnectionAuthenticationMode(DbConnectionAuthenticationMode dbConnectionAuthenticationMode) Set the dbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database. More details: https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#authentication-and-authorization.- Parameters:
dbConnectionAuthenticationMode- the dbConnectionAuthenticationMode value to set.- Returns:
- the SparkMetastoreSpec object itself.
-
dbUsername
Get the dbUsername property: The database user name.- Returns:
- the dbUsername value.
-
withDbUsername
Set the dbUsername property: The database user name.- Parameters:
dbUsername- the dbUsername value to set.- Returns:
- the SparkMetastoreSpec object itself.
-
dbPasswordSecretName
Get the dbPasswordSecretName property: The secret name which contains the database user password.- Returns:
- the dbPasswordSecretName value.
-
withDbPasswordSecretName
Set the dbPasswordSecretName property: The secret name which contains the database user password.- Parameters:
dbPasswordSecretName- the dbPasswordSecretName value to set.- Returns:
- the SparkMetastoreSpec object itself.
-
keyVaultId
Get the keyVaultId property: The key vault resource id.- Returns:
- the keyVaultId value.
-
withKeyVaultId
Set the keyVaultId property: The key vault resource id.- Parameters:
keyVaultId- the keyVaultId value to set.- Returns:
- the SparkMetastoreSpec object itself.
-
thriftUrl
-
withThriftUrl
Set the thriftUrl property: The thrift url.- Parameters:
thriftUrl- the thriftUrl value to set.- Returns:
- the SparkMetastoreSpec object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SparkMetastoreSpec>- Throws:
IOException
-
fromJson
Reads an instance of SparkMetastoreSpec from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SparkMetastoreSpec if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SparkMetastoreSpec.
-