Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hadoop-2.6.0 Namenode not getting formatted

Tags:

java

hadoop

hdfs

I have just install Hadoop 2.6.0, While formatting name node, it halts at following lines and no exit code returns.

STARTUP_MSG: build = https://git-wip-us.apache.org/repos/asf/hadoop.git -r e3496499ecb8d220fba99dc5ed4c99c8f9e33bb1; compiled by 'jenkins' on 2014-11-13T21:10Z STARTUP_MSG: java = 1.7.0_79
/
15/08/28 18:45:22 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
15/08/28 18:45:22 INFO namenode.NameNode: createNameNode [–format]
Usage: java NameNode [-backup] |
[-checkpoint] |
[-format [-clusterid cid ] [-force] [-nonInteractive] ] |
[-upgrade [-clusterid cid] [-renameReserved] ] |
[-upgradeOnly [-clusterid cid] [-renameReserved] ] |
[-rollback] |
[-rollingUpgrade <rollback|downgrade|started> ] |
[-finalize] |
[-importCheckpoint] |
[-initializeSharedEdits] |
[-bootstrapStandby] |
[-recover [ -force] ] |
[-metadataVersion ] ]
15/08/28 18:45:22 INFO namenode.NameNode: SHUTDOWN_MSG:
/

SHUTDOWN_MSG: Shutting down NameNode at workstation/127.0.1.1
************************************************************/

I am not be able to debug out of it, when run start-dfs.sh and start yarn.sh it start all demon except NameNode.

like image 304
Sid Avatar asked Nov 09 '22 06:11

Sid


1 Answers

Seems you used a wrong command.The commands related to hdfs are available in this url

Use any of the following command command

hadoop namenode -format

OR

hdfs namenode -format
like image 163
Amal G Jose Avatar answered Nov 14 '22 22:11

Amal G Jose