类 HiveApplicationConfig
- java.lang.Object
-
- com.baidubce.services.bmr.model.ApplicationConfig
-
- com.baidubce.services.bmr.model.HiveApplicationConfig
-
public class HiveApplicationConfig extends ApplicationConfig
Represent a Hive application.A Hive application can be configured with properties such as: version, meta-store, host, port, database, username, password
-
-
构造器概要
构造器 构造器 说明 HiveApplicationConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 HiveApplicationConfigwithDatabase(String database)Configure the database name for the Hive metastore.HiveApplicationConfigwithHost(String host)Configure the host for MySQL service used by Hive metastore.HiveApplicationConfigwithMetastore(String metastore)Configure the metastore of Hive Server。 By default, the inner metastore is used.HiveApplicationConfigwithPassword(String password)Configure the password for accessing MySQL database.HiveApplicationConfigwithPort(int port)Configure the port for MySQL service used by Hive metastore.HiveApplicationConfigwithUserName(String username)Configure the username for accessing MySQL database.HiveApplicationConfigwithVersion(String version)Configure the version of Hive.-
从类继承的方法 com.baidubce.services.bmr.model.ApplicationConfig
addProperty, getName, getProperties, getVersion, setName, setProperties, setVersion
-
-
-
-
方法详细资料
-
withVersion
public HiveApplicationConfig withVersion(String version)
Configure the version of Hive. The reference version is as follows: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.- 返回:
- HiveApplicationConfig
-
withMetastore
public HiveApplicationConfig withMetastore(String metastore)
Configure the metastore of Hive Server。 By default, the inner metastore is used. And you can also use MySQL by set the metastore to "mysql". If so, you must provide other properties at the same time, including host and port for the MySQL service, the database name, the username and password for accessing MySQL database.- 参数:
metastore- The type of metastore. Use "default" or "mysql".- 返回:
- HiveApplicationConfig
-
withHost
public HiveApplicationConfig withHost(String host)
Configure the host for MySQL service used by Hive metastore. This configuration is needed only if the metastore is "mysql".- 参数:
host- The host on which the MySQL service runs.- 返回:
- HiveApplicationConfig
-
withPort
public HiveApplicationConfig withPort(int port)
Configure the port for MySQL service used by Hive metastore. This configuration is needed only if the metastore is "mysql".- 参数:
port- The port on which the MySQL service listens.- 返回:
- HiveApplicationConfig
-
withDatabase
public HiveApplicationConfig withDatabase(String database)
Configure the database name for the Hive metastore. This configuration is needed only if the metastore is "mysql".- 参数:
database- The database's name for Hive metastore.- 返回:
- HiveApplicationConfig
-
withUserName
public HiveApplicationConfig withUserName(String username)
Configure the username for accessing MySQL database. This configuration is needed only if the metastore is "mysql".- 参数:
username- The username for accessing MySQL database.- 返回:
- HiveApplicationConfig
-
withPassword
public HiveApplicationConfig withPassword(String password)
Configure the password for accessing MySQL database. This configuration is needed only if the metastore is "mysql".- 参数:
password- The password for accessing MySQL database.- 返回:
- HiveApplicationConfig
-
-