public class DruidApplicationConfig extends ApplicationConfig
| Constructor and Description |
|---|
DruidApplicationConfig() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addProperty, getName, getProperties, getVersion, setName, setProperties, setVersionpublic DruidApplicationConfig withVersion(String version)
image type | image version | druid version supported hadoop | 2.0.0 | 0.12.1
version - The version of druid.public DruidApplicationConfig withMetastore(String metastore)
metastore - The type of metastore. Use "default" or "mysql".public DruidApplicationConfig withHost(String host)
host - The host on which the MySQL service runs.public DruidApplicationConfig withPort(int port)
port - The port on which the MySQL service listens.public DruidApplicationConfig withDatabase(String database)
database - The database's name for druid metastore.public DruidApplicationConfig withUserName(String username)
username - The username for accessing MySQL database.public DruidApplicationConfig withPassword(String password)
password - The password for accessing MySQL database.Copyright © 2021. All rights reserved.