Reply
Explorer
Posts: 12
Registered: ‎08-04-2017

Name node service getting down in HA configuration

File transfter from one cluster to another cluster using distcp, Configured both cluster services in hdfs-site.xml file after that name node service not starting.

 

Starting hdfs service first node name node service getting down and other HA node datanode service getting start.

 

1.Added HA clusters multiple nameservices in hdfs-site.xml file

2. Stop and Start hadoop all services

3. Namenode service is down below error message.

org.apache.hadoop.hdfs.server.common.InconsistentFSStateException:
Directory /home/rajesh/tmp/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible.

4. CHecked cluster service active or standby it failed.

[rajesh@mashdp ~]$ hdfs haadmin -getServiceState nn1 Illegal argument: Unable to determine the nameservice id.
[rajesh@mashdp ~]$ hdfs haadmin -getServiceState nn2 Illegal argument: Unable to determine the nameservice id.
[rajesh@mashdp ~]$ hdfs haadmin -getServiceState mn1 Illegal argument: Unable to determine the nameservice id.
[rajesh@mashdp ~]$ hdfs haadmin -getServiceState mn2 Illegal argument: Unable to determine the nameservice id.

5. hdfs command also down.

[rajesh@mashdp ~]$ hdfs dfs -ls -R / 17/06/29 16:31:16 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 17/06/29 16:31:16
WARN hdfs.DFSUtil: Namenode for raccluster remains unresolved for ID mn1. Check your hdfs-site.xml file to ensure namenodes are configured properly. 17/06/29 16:31:16
WARN hdfs.DFSUtil: Namenode for raccluster remains unresolved for ID mn2. Check your hdfs-site.xml file to ensure namenodes are configured properly.

Explorer
Posts: 16
Registered: ‎01-11-2017

Re: Name node service getting down in HA configuration

Hi,

 

I'm not sure what you want.

 

Which cloudera version you run?

 

To configure HDFS HA (2 namenodes in the same cluster), you need to configure more things, please check this url: Enabling HDFS HA

 

If you want to copy data between to clusters using distcp, you don't need to modify any file, even less hdfs-site.xml, please check this url: Copying Cluster Data Using DistCp

 

Regards,

Marc

 

Announcements