Step 2. Create a node-specific configuration file and copy it to a volume

About this task

Complete the following steps to create a node-specific configuration file for host1 and copy it to the mapr.configuration volume:

Procedure

  1. Edit the mapred-site.xml configuration file in /tmp (or you could copy the default version into /tmp again and edit that) and create the node-specific configuration file for host1.
  2. Create the directories required to store the file under /var/mapr/configuration/nodes: hadoop fs -mkdir -p /var/mapr/configuration/nodes/host1/hadoop/hadoop-0.20.2/conf
    hadoop fs -mkdir -p /var/mapr/configuration/nodes/host1/hadoop/hadoop-0.20.2/conf
  3. Store the new configuration file for host1 in the node-specific directory you just created. $ hadoop fs -put /tmp/mapred-site.xml /var/mapr/configuration/nodes/host1/hadoop/hadoop-0.20.2/conf
    $ hadoop fs -put /tmp/mapred-site.xml /var/mapr/configuration/nodes/host1/hadoop/hadoop-0.20.2/conf