configure.sh configures a node to be part of a MapR cluster, or modifies services running on an existing node in the cluster. The script creates (or updates) configuration files related to the cluster and the services running on the node.
Before you run
configure.sh, make sure you have a list of the hostnames of the CLDB and ZooKeeper nodes. For a cluster running YARN applications, you also need a list of the hostnames of the nodes running ResourceManager (and HistoryServer, if you choose to run this service). You can optionally specify the ports for the CLDB and ZooKeeper nodes as well. The default ports are:
Default Port #
configure.sh takes an optional HistoryServer host name, cluster name and log file, along with comma-separated lists of CLDB, ZooKeeper, and ResourceManager host names or IP addresses (and optionally ports), using the following syntax:
/opt/mapr/server/configure.sh -C <host>[:<port>][,<host>[:<port>]...] -Z <host>[:<port>][,<host>[:<port>]...] -RM <host> [-HS <host>] [-L <logfile>][-N <cluster name>]
Each time you specify the
-Z <host>[:<port>] option, you must use the same order for the ZooKeeper node list. If you change the order for any node, the ZooKeeper leader election process will fail.