Closed bhushit closed 9 years ago
Create /tmp
dir in hdfs as hdfs user,
hdfs dfs -mkdir /tmp
sudo -u hdfs hdfs dfs -chown mapred /tmp
sudo -u hdfs hdfs dfs -chgrp mapred /tmp
Create config for MapReduce,
sudo touch /etc/hadoop/conf/mapred-site.xml
sudo vim /etc/hadoop/conf/mapred-site.xml
and add the config,
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>hcc-group8head.unl.edu:54311</value>
</property>
</configuration>
On workers: Install openjdk
sudo yum install java-1.7.0-openjdk-devel
Install tasktracker on worker,
sudo yum install hadoop-0.20-mapreduce-tasktracker
Create the config file, /etc/hadoop/conf/mapred-site.xml
,
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>hcc-group8head.unl.edu:54311</value>
</property>
</configuration>
Start the task tracker,
sudo /etc/init.d/hadoop-0.20-mapreduce-tasktracker start
Logs will be stored at,
/var/log/hadoop-0.20-mapreduce/hadoop-hadoop-tasktracker-work1.cluster8.unl.edu.log
Install openjdk
Install jobtracker on head,