Format the NameNode:
We first need to format the NameNode to create a Hadoop Distributed File System (HDFS).
Open Cygwin terminal (Run as Administration) and execute following command
$ cd hadoop-x.y.z
$ bin/hadoop namenode –format
This command will run for some time. You should be able to see message “Storage Directory has been successfully formatted”
Start Hadoop Daemons:
Once the filesystem has been created . Next step would be to check and start Hadoop Cluster Daemons NameNode, DataNode, SecondaryNameNode, JobTracker, TaskTracker.
Restart the Cygwin Terminal and execute below command to start all daemons on Hadoop Cluster.
This command will start all the services in Cluster and now you have your Hadoop Cluster running.
Stop Hadoop Daemons:
To stop all the daemons, we can execute the command
In the next chapter we browse the web interface of NameNode and JobTracker to see the details.