Академический Документы
Профессиональный Документы
Культура Документы
2. This step is required only if you need to setup multi node cluster
Modify hosts file on each node to add ip and host name of other nodes that will be
part your cluster
3. From the home directory, generate ssh key on each node using below command
ssh-keygen -t rsa (Same for all the nodes) or
4. Copy public key to all other nodes in cluster, i.e. from N1 copy it to N2, N3 and N1,
then from N2 copy it to N1, N3 and N2, and continue this of all nodes in cluster
8. Install data node and task tracker (install this on N3 if multi node cluster)
"hadoop-0.20-mapreduce-tasktracker and hadoop-hdfs-datanode"
<property>
<name>fs.trash.interval</name>
<value>1440</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>/data/1/dfs/nn,/nfsmount/dfs/nn</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>/data/1/dfs/dn,/data/2/dfs/dn,/data/3/dfs/dn</value>
</property>
11. This step is required only if you need setup multi node cluster
Copy core and hdfs site xmls to all nodes in cluster
<property>
<name>mapred.job.tracker</name>
<value>jobtracker-host.company.com:8021</value>
</property>
<property>
<name>mapred.local.dir</name>
<value>/data/1/mapred/local,/data/2/mapred/local,/data/3/mapre
d/local</value>
</property>
15. Setup maperd properties
Create dir: /data/1/mapred/local /data/2/mapred/local
/data/3/mapred/local /data/4/mapred/local
chown -R mapred:hadoop /data/1/mapred/local
/data/2/mapred/local /data/3/mapred/local
/data/4/mapred/local