|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bmr.model.ApplicationConfig
com.baidubce.services.bmr.model.HiveApplicationConfig
public class HiveApplicationConfig
Represent a Hive application. A Hive application can be configured with properties such as: version, meta-store, host, port, database, username, password
Constructor Summary | |
---|---|
HiveApplicationConfig()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.baidubce.services.bmr.model.ApplicationConfig |
---|
addProperty, getName, getProperties, getVersion, setName, setProperties, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HiveApplicationConfig()
Method Detail |
---|
public HiveApplicationConfig withVersion(String version)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |