Hadoop安装:格式化Namenode

时间:2014-07-07 04:20:08

标签: hadoop

我在Mac OSX 10.9.3上安装Hadoop 2.2.0时遇到了困难。我基本上遵循了本教程: http://www.alexjf.net/blog/distributed-systems/hadoop-yarn-installation-definitive-guide

当我运行$HADOOP_PREFIX/bin/hdfs namenode -format格式化namenode时,我收到消息: SHUTDOWN_MSG: Shutting down NameNode at Macintosh.local/192.168.0.103。我相信这阻止我成功运行测试

$HADOOP_PREFIX/bin/hadoop jar $HADOOP_PREFIX/share/hadoop/yarn/hadoop-yarn-applications-
distributedshell-2.2.0.jar org.apache.hadoop.yarn.applications.distributedshell.Client --jar 
$HADOOP_PREFIX/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.2.0.jar --
shell_command date --num_containers 2 --master_memory 1024

有谁知道如何正确格式化namenode?

(关于上面的测试命令,有人向我提到它可能与hdfs文件系统无法正常运行有关,如果这是相关的。)

0 个答案:

没有答案