MapR 5.0 Documentation : The Roles File

The roles file is used with the maprinstall script, which is deprecated as of version 2.1 of the MapR software, November 2012. Please see the Advanced Installation Topics for the latest recommendations for installation.

The Roles file enables you to define configuration information for the nodes in your cluster.


host1 package1[,package2,..,packageN] /dev/disk1[,/dev/disk2,..,/dev/diskN]
[host2 package1[,package2,..,packageN] /dev/disk1[,/dev/disk2,..,/dev/diskN]]
[ ... ]

Each element on an entry in a roles file is separated by a space. Each entry consists of these elements:

  • The host name or IP address of a node in the cluster
  • A comma-delimited list of packages to install on that node
  • A comma-delimited list of disks and disk partitions available on that node for MapR's use

Sample Roles File

This sample roles file sets up a five-node cluster that uses the M5 license level to run multiple NFS nodes.

user@host: cat /tmp/myrolesfile.txt

node1 mapr-cldb,mapr-webserver,mapr-fileserver,mapr-hive,mapr-pig,mapr-hbase,mapr-mahout,mapr-nfs /dev/sda3,/dev/sdb,/dev/sdc
node2 mapr-zookeeper,mapr-webserver,mapr-hive,mapr-pig,mapr-hbase,mapr-mahout,mapr-nfs /dev/sda3,/dev/sdb,/dev/sdc
node3 mapr-tasktracker,mapr-jobtracker,mapr-hive,mapr-pig,mapr-hbase,mapr-mahout,mapr-nfs /dev/sda3,/dev/sdb,/dev/sdc
node4 mapr-tasktracker,mapr-jobtracker,mapr-hive,mapr-pig,mapr-hbase,mapr-mahout,mapr-nfs /dev/sda3,/dev/sdb,/dev/sdc mapr-tasktracker,mapr-jobtracker,mapr-hive,mapr-pig,mapr-hbase,mapr-mahout,mapr-nfs /dev/sda3,/dev/sdb,/dev/sdc