MapR 5.0 Documentation : Configuring a Node

The script 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:

Service
Default Port #
CLDB7222
ZooKeeper5181

The script 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.

Example:

/opt/mapr/server/configure.sh -C r1n1.sj.us,r3n1.sj.us,r5n1.sj.us -Z r1n1.sj.us,r2n1.sj.us,r3n1.sj.us,r4n1.sj.us,r5n1.sj.us -RM r1n1.sj.us,r2n1.sj.us -HS r5n1.sj.us -N MyCluster