com.baidubce.services.bmr.model
Class DruidApplicationConfig

java.lang.Object
  extended by com.baidubce.services.bmr.model.ApplicationConfig
      extended by com.baidubce.services.bmr.model.DruidApplicationConfig

public class DruidApplicationConfig
extends ApplicationConfig


Constructor Summary
DruidApplicationConfig()
           
 
Method Summary
 DruidApplicationConfig withDatabase(String database)
          Configure the database name for the druid metastore.
 DruidApplicationConfig withHost(String host)
          Configure the host for MySQL service used by druid metastore.
 DruidApplicationConfig withMetastore(String metastore)
          Configure the metastore of druid Server。 By default, the inner metastore is used.
 DruidApplicationConfig withPassword(String password)
          Configure the password for accessing MySQL database.
 DruidApplicationConfig withPort(int port)
          Configure the port for MySQL service used by druid metastore.
 DruidApplicationConfig withUserName(String username)
          Configure the username for accessing MySQL database.
 DruidApplicationConfig withVersion(String version)
          Configure the version of druid.
 
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

DruidApplicationConfig

public DruidApplicationConfig()
Method Detail

withVersion

public DruidApplicationConfig withVersion(String version)
Configure the version of druid. The reference version is as follows:

image type | image version | druid version supported hadoop | 2.0.0 | 0.12.1

Parameters:
version - The version of druid.
Returns:
DruidApplicationConfig

withMetastore

public DruidApplicationConfig withMetastore(String metastore)
Configure the metastore of druid 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.

Parameters:
metastore - The type of metastore. Use "default" or "mysql".
Returns:
DruidApplicationConfig

withHost

public DruidApplicationConfig withHost(String host)
Configure the host for MySQL service used by druid metastore. This configuration is needed only if the metastore is "mysql".

Parameters:
host - The host on which the MySQL service runs.
Returns:
DruidApplicationConfig

withPort

public DruidApplicationConfig withPort(int port)
Configure the port for MySQL service used by druid metastore. This configuration is needed only if the metastore is "mysql".

Parameters:
port - The port on which the MySQL service listens.
Returns:
DruidApplicationConfig

withDatabase

public DruidApplicationConfig withDatabase(String database)
Configure the database name for the druid metastore. This configuration is needed only if the metastore is "mysql".

Parameters:
database - The database's name for druid metastore.
Returns:
DruidApplicationConfig

withUserName

public DruidApplicationConfig withUserName(String username)
Configure the username for accessing MySQL database. This configuration is needed only if the metastore is "mysql".

Parameters:
username - The username for accessing MySQL database.
Returns:
DruidApplicationConfig

withPassword

public DruidApplicationConfig withPassword(String password)
Configure the password for accessing MySQL database. This configuration is needed only if the metastore is "mysql".

Parameters:
password - The password for accessing MySQL database.
Returns:
DruidApplicationConfig


Copyright © 2020. All rights reserved.