hadoop namenode没有格式化 [英] hadoop namenode is not formatting
问题描述
当通过 - 格式化名称节点时
hadoop namenode -format
我的外壳显示:
$ HADOOP_HOME已弃用
然后突然返回到shell而不格式化namenode。
在通过以下方式启动hadoop守护进程之后:
start-all.sh
$ c $>警告:$ HADOOP_HOME已弃用。
开始namenode,记录到/usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-namenode-jci1.out
jci1:启动datanode,记录日志到/usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-datanode-jci1.out
jci1:启动secondarynamenode,记录到/usr/local/hadoop-1.2.1/ libexec /../ logs / hadoop-ubuntu1-secondarynamenode -jci1.out
启动jobtracker,记录到/usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-jobtracker-jci1 .out
jci1:启动tasktracker,记录到/usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-tasktracker-jci1.out
但是当我试图通过jps查看进程时,输出如下所示:
9351 - 主类信息不可用
9184 - 主类信息不可用
9520 - 主类信息不可用
9612 - 进程信息不可用
9831 jps
经过一段时间后,jps只显示jps过程:
9831 Jps
我无法弄清楚为什么守护进程刚刚开始后就停止。它是Java的问题?
请给我一些建议,我应该怎么做才能解决这个问题。 hadoop的核心,所以JDK应该兼容,并具有hadoop运行时所需的所有必需文件。在我的情况下,罪魁祸首是另一个与Oracle_JDK 1.7并行的openjdk-6,所以我清除了以前的安装并安装了oracle-java作为唯一的java替代品。
现在我的namenode格式化没有任何问题,同时查看hadoop守护进程的日志文件解决了我的另一个问题。Here I am facing very strange issue in Ubuntu 12.04 Server, 64 Bit version. I installed java 7 JDK manually (Copy-pasted the jdk folder in /usr/lib/jvm and done lots of configuration to manage the java, javac and jps commands working properly). When formatting the name node by-
hadoop namenode -format
my shell shows:
$HADOOP_HOME is deprecated
and then suddenly returns to shell without formatting the namenode. Also after starting the hadoop daemons by:
start-all.sh
they start by showing below message:
Warning: $HADOOP_HOME is deprecated. starting namenode, logging to /usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-namenode-jci1.out jci1: starting datanode, logging to /usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-datanode-jci1.out jci1: starting secondarynamenode, logging to /usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-secondarynamenode-jci1.out starting jobtracker, logging to /usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-jobtracker-jci1.out jci1: starting tasktracker, logging to /usr/local/hadoop-1.2.1/libexec/../logs/hadoop-ubuntu1-tasktracker-jci1.out
but when I try to see the processes by "jps" the output is like:
9351 -- main class information unavailable 9184 -- main class information unavailable 9520 -- main class information unavailable 9612 -- process information unavailable 9831 Jps
and after some time the jps shows only jps process:
9831 Jps
I am unable to figure-out why daemons are stopping just after start. Is it java issue? Please give me advice what should I do to sort it out.
解决方案Finally solved this issue, because java is core of hadoop so JDK should be compatible and has all necessary files which are required by hadoop run time. In my case the culprit was another openjdk-6 which was parallel with Oracle_JDK 1.7, so I purged the previous installation and installed the oracle-java as only java alternative. Now my namenode is formatting without any issue, also reviewing the log files of hadoop daemons solved my another problem.
这篇关于hadoop namenode没有格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!