简体   繁体   English

Hadoop-2.6.0 Namenode没有格式化

[英]Hadoop-2.6.0 Namenode not getting formatted

I have just install hadoop 2.6.0, While formating name node, it halts at following lines and no exit code returns. 我刚刚安装了hadoop 2.6.0,在格式化名称节点时,它在以下行停止并且没有退出代码返回。

STARTUP_MSG: build = https://git-wip-us.apache.org/repos/asf/hadoop.git -r e3496499ecb8d220fba99dc5ed4c99c8f9e33bb1; 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 由'jenkins'于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:[TERM,HUP,INT]的已注册UNIX信号处理程序
15/08/28 18:45:22 INFO namenode.NameNode: createNameNode [–format] 15/08/28 18:45:22 INFO namenode.NameNode:createNameNode [-format]
Usage: java NameNode [-backup] | 用法:java NameNode [-backup] |
[-checkpoint] | [-checkpoint] |
[-format [-clusterid cid ] [-force] [-nonInteractive] ] | [-format [-clusterid cid] [-force] [-nonInteractive]] |
[-upgrade [-clusterid cid] [-renameReserved] ] | [-upgrade [-clusterid cid] [-renameReserved]] |
[-upgradeOnly [-clusterid cid] [-renameReserved] ] | [-upgradeOnly [-clusterid cid] [-renameReserved]] |
[-rollback] | [-rollback] |
[-rollingUpgrade ] | [-rollingUpgrade] |
[-finalize] | [-finalize] |
[-importCheckpoint] | [-importCheckpoint] |
[-initializeSharedEdits] | [-initializeSharedEdits] |
[-bootstrapStandby] | [-bootstrapStandby] |
[-recover [ -force] ] | [-recover [-force]] |
[-metadataVersion ] ] [-metadataVersion]]
15/08/28 18:45:22 INFO namenode.NameNode: SHUTDOWN_MSG: 15/08/28 18:45:22 INFO namenode.NameNode:SHUTDOWN_MSG:
/************************************************************ / ******************* ***********
SHUTDOWN_MSG: Shutting down NameNode at workstation/127.0.1.1 SHUTDOWN_MSG:关闭工作站/ 127.0.1.1上的NameNode
************************************************************/ ************************************************** ********** /

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. 我无法调试它,当运行start-dfs.sh并启动yarn.sh它启动除NameNode之外的所有恶魔。 Please help on the same. 请帮忙。

15/08/28 18:45:22 INFO namenode.NameNode: createNameNode [–format] 15/08/28 18:45:22 INFO namenode.NameNode:createNameNode [-format]

This looks like the same problem detailed here , with solution here . 这看起来像详述了同样的问题在这里 ,以解决在这里

The problem is that you used the long hyphen "–" instead of the short hyphen (minus symbol) "-" 问题是您使用长连字符“ - ”而不是短连字符(减号)“ - ”

One way that this can happen is by using a word processor instead of a text editor. 可能发生这种情况的一种方法是使用文字处理器而不是文本编辑器。

Seems you used a wrong command.The commands related to hdfs are available in this url 似乎您使用了错误的命令。此URL中提供了与hdfs相关的命令

Use any of the following command command 使用以下任何命令命令

hadoop namenode -format

OR 要么

hdfs namenode -format

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM