类 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

        public HiveApplicationConfig()
    • 方法详细资料

      • 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