Database Reference
In-Depth Information
<name>dfs.namenode.servicerpc-address.ns1</name>
<value>node1.hcluster:8022</value>
</property>
<property>
<name>dfs.namenode.http-address.ns1</name>
<value>node1.hcluster:50070</value>
</property>
<property>
<name>dfs.namenode.rpc-address.ns2</name>
<value>node2.hcluster:8020</value>
</property>
<property>
<name>dfs.namenode.servicerpc-address.ns2</name>
<value>node2.hcluster:8022</value>
</property>
<property>
<name>dfs.namenode.http-address.ns2</name>
<value>node2.hcluster:50070</value>
</property>
2. Copy the updated hdfs-site.xml file to all the nodes in the cluster.
3. Format the namenode from user hduser on node1.hcluster using the fol-
lowing command:
$ sudo -u hdfs hadoop namenode -format -clusterId
<clusterID>
4. Specify a unique ID for <clusterID> . If this ID is not specified, the unique ID
is autogenerated.
5. Format the namenode on node2.hcluster using the following command:
$ sudo -u hdfs hadoop namenode -format -clusterId
<clusterID>
Here, the <clusterID> is the same ID specified when formatting the namen-
ode on node1.hcluster .
Search WWH ::




Custom Search