This is Ravi from Udemy Hadoop Developer course.
I have been trying to work through the installation for the psuedo distribution mode but facing some issues. (Things work well until Stand Alone mode example)
When I try starting the daemons, I get the following message:
vioravis@vioravis-VirtualBox:~/hadoop/hadoop-1.2.1/bin$ start-all.sh
starting namenode, logging to /home/vioravis/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-vioravis-namenode-vioravis-VirtualBox.out
localhost: starting datanode, logging to /home/vioravis/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-vioravis-datanode-vioravis-VirtualBox.out
localhost: starting secondarynamenode, logging to /home/vioravis/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-vioravis-secondarynamenode-vioravis-VirtualBox.out
starting jobtracker, logging to /home/vioravis/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-vioravis-jobtracker-vioravis-VirtualBox.out
localhost: starting tasktracker, logging to /home/vioravis/hadoop/hadoop-1.2.1/libexec/../logs/hadoop-vioravis-tasktracker-vioravis-VirtualBox.out
However, datanode and the namenode are not starting as shown by the jps command:
vioravis@vioravis-VirtualBox:~/hadoop/hadoop-1.2.1/bin$ jps
9040 Jps
8771 SecondaryNameNode
8996 TaskTracker
8858 JobTracker
I tried changing hdfs-site.xml with reference to dfs/data and dfs/name folders as given in the installation guide.
However, formatting doesn't generate the output suggested in the installation guide. Instead I get the following:
vioravis@vioravis-VirtualBox:~/hadoop/hadoop-1.2.1/bin$ hadoop namenode –format
14/07/20 22:44:16 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = vioravis-VirtualBox/127.0.1.1 STARTUP_MSG: args = [–format]
STARTUP_MSG: version = 1.2.1
STARTUP_MSG: java = 1.7.0_60
************************************************************/
Usage: java NameNode [-format [-force ] [-nonInteractive]] | [-upgrade] | [-rollback] | [-finalize] | [-importCheckpoint] | [-recover [ -force ] ]
14/07/20 22:44:16 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at vioravis-VirtualBox/127.0.1.1 ************************************************************/
Namenode and datanode are still not starting.
Could someone please explain what is causing this issue?
Thank you.
Ravi