Step 1. Create a customized configuration file and copy it to a volume
About this task
Procedure
-
Make a copy of the existing default version of the
mapred-site.xml
file (so you can use it as a template), and store it in/tmp
. You can perform this step on any node in the cluster that contains the configuration file. $ cp /opt/mapr/hadoop/hadoop-0.20.2/conf/mapred-site.xml /tmp/mapred-site.xml$ cp /opt/mapr/hadoop/hadoop-0.20.2/conf/mapred-site.xml /tmp/mapred-site.xml
- Edit the copy and put in the changes you want for host2 through host5.
-
Create the directories required to store the file under
/var/mapr/configuration/default
: $ hadoop fs -mkdir -p /var/mapr/configuration/default/hadoop/hadoop-0.20.2/conf$ hadoop fs -mkdir -p /var/mapr/configuration/default/hadoop/hadoop-0.20.2/conf
-
Store the new configuration file in the
/var/mapr/configuration/default
directory. $ hadoop fs -put /tmp/mapred-site.xml /var/mapr/configuration/default/hadoop/hadoop-0.20.2/conf$ hadoop fs -put /tmp/mapred-site.xml /var/mapr/configuration/default/hadoop/hadoop-0.20.2/conf