I tried and got the error – Could not find the main class: namenode-format. Thanks, Agastya ...
I tried and got the error – Could not find the main class: namenode-format.
ROOT CAUSE: If user runs an installer with DESTROY_DATA=NO option, the installer will not crete NameNode directories. You should see similar error in NameNode log:
2013-08-22 14:29:14,228 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory C:\hadoop_data\hdfs\nn is in an inconsistent state: storage directory does not exist or is not accessible.
1. Open the “Hadoop Command Line” Command Prompt shortcut.
2. Run the following command that sets up the NameNode directories: “hadoop namenode -format”
A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.
Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world