Using Central Configuration

Complete the following steps to use the Central Configuration (pullcentralconfig script) to push a customized configuration file from the mapr.configuration volume in MapR-FS to nodes in the cluster.
  1. Customize a configuration file on any node in the cluster. See Listing the Configuration Files for Each Service to determine which files you can customize.
  2. Create the directory structure for the configuration file that is relative to $MAPR_HOME based on how many nodes the file applies to:
    Scope MapR-FS Location
    Use this file on all nodes that use the configuration file unless a node-specific file exists in the mapr.configuration volume. /var/mapr/configuration/default/<directory path to the configuration file>
    Use this file for a specific node. /var/mapr/configuration/nodes/<hostname>/<directory path to the configuration file>
  3. Copy the customized file to the mapr.configuration volume in the directory that you created. For example, to create a directory to update the webserver configuration file, which is in /opt/mapr/conf, you would create directory path /var/mapr/configuration/default/conf and then copy the updated file to this directory.
  4. Run the pullcentralconfig script or wait until the script acknowledges the update. For more information, see About the pullcentralconfig Script.
  5. Restart the services associated with the updated configuration files to ensure that the latest version is used for each service.