public class HiveApplicationConfig extends ApplicationConfig
A Hive application can be configured with properties such as: version, meta-store, host, port, database, username, password
| Constructor and Description |
|---|
HiveApplicationConfig() |
| Modifier and Type | Method and Description |
|---|---|
HiveApplicationConfig |
withDatabase(String database)
Configure the database name for the Hive metastore.
|
HiveApplicationConfig |
withHost(String host)
Configure the host for MySQL service used by Hive metastore.
|
HiveApplicationConfig |
withMetastore(String metastore)
Configure the metastore of Hive Server。 By default, the inner metastore is used.
|
HiveApplicationConfig |
withPassword(String password)
Configure the password for accessing MySQL database.
|
HiveApplicationConfig |
withPort(int port)
Configure the port for MySQL service used by Hive metastore.
|
HiveApplicationConfig |
withUserName(String username)
Configure the username for accessing MySQL database.
|
HiveApplicationConfig |
withVersion(String version)
Configure the version of Hive.
|
addProperty, getName, getProperties, getVersion, setName, setProperties, setVersionpublic HiveApplicationConfig withVersion(String version)
image type | image version | hive version supported hadoop | 0.1.0 | 0.13.0 hadoop | 0.2.0 | 0.14.0
version - The version of Hive.public HiveApplicationConfig withMetastore(String metastore)
metastore - The type of metastore. Use "default" or "mysql".public HiveApplicationConfig withHost(String host)
host - The host on which the MySQL service runs.public HiveApplicationConfig withPort(int port)
port - The port on which the MySQL service listens.public HiveApplicationConfig withDatabase(String database)
database - The database's name for Hive metastore.public HiveApplicationConfig withUserName(String username)
username - The username for accessing MySQL database.public HiveApplicationConfig withPassword(String password)
password - The password for accessing MySQL database.Copyright © 2020. All rights reserved.