Setting Cloudera Manager Configurations
- Cloudera Manager
- Cloudera Management Service
- The various CDH components, such as HDFS, Hive, and HBase
- Role types, such as NameNode, ResourceManager, and Impala Daemon
- Client - Using the configuration file. For more information on the configuration file, see The Cloudera Director Configuration File.
- Server - Submitting JSON documents to the REST service endpoint. The REST service endpoint can also be exercised through the API console at http://director-server-hostname:7189/api-console.
Cloudera Director enables you to customize deployment and cluster setup, and configurations are applied on top of Cloudera Manager default and automatic host-based configuration of services and roles. Set configurations either in the deployment template or in the cluster template.
Deployment Template Configuration
This section shows the structure of the Cloudera Manager deployment configuration settings in both the CLI and the API.
CLI
cloudera-manager { ... configs { # CLOUDERA_MANAGER corresponds to the Cloudera Manager Server configuration options CLOUDERA_MANAGER { enable_api_debug: false } # CLOUDERA_MANAGEMENT_SERVICE corresponds to the Service-Wide configuration options CLOUDERA_MANAGEMENT_SERVICE { enable_alerts : false enable_config_alerts : false } ACTIVITYMONITOR { ... } REPORTSMANAGER { ... } NAVIGATOR { ... } # Added in Cloudera Manager 5.2+ NAVIGATORMETASERVER { ... } # Configuration properties for all hosts HOSTS { ... } } ... }
API
{ "configs": { "CLOUDERA_MANAGER": { "enable_api_debug": "true" }, "CLOUDERA_MANAGEMENT_SERVICE": { "enable_alerts": "false" } } }
Cluster Template Service-wide Configuration
This section shows the structure of the Cloudera Manager service-wide configuration settings in both the CLI and the API.
CLI
cluster { ... configs { HDFS { dfs_block_size: 1342177280 } MAPREDUCE { mapred_system_dir: /user/home mr_user_to_impersonate: mapred1 } } ... }
API
{ "servicesConfigs": { "HDFS": { "dfs_block_size": 1342177280 }, "MAPREDUCE": { "mapred_system_dir": "/user/home", "mr_user_to_impersonate": "mapred1" } } }
Cluster Template Roletype Configurations
This section shows the structure of the Cloudera Manager roletype configuration settings in both the CLI and the API.
CLI
cluster { ... masters { ... # Optional custom role configurations configs { HDFS { NAMENODE { dfs_name_dir_list: /data/nn namenode_port: 1234 } } } ... } ... }
API
{ "virtualInstanceGroups" : { "configs": { "HDFS": { "NAMENODE": { "dfs_name_dir_list": "/data/nn", "namenode_port": "1234" } } } } }