关闭namenode hadoop集群

时间:2017-09-11 19:44:33

标签: hadoop

我正在尝试设置一个hadoop群集并收到以下错误: -

 $HADOOP_PREFIX/bin/hdfs namenode -format 

Re-format filesystem in Storage Directory /var/hadoop/hadoop-namenode ? (Y or N) Y
17/09/11 19:41:55 INFO namenode.FSImage: Allocated new BlockPoolId: BP-448039548-10.211.55.101-1505158915421
17/09/11 19:41:55 INFO common.Storage: Storage directory /var/hadoop/hadoop-namenode has been successfully formatted.
17/09/11 19:41:55 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
17/09/11 19:41:55 INFO util.ExitUtil: Exiting with status 0
17/09/11 19:41:55 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at node1/10.211.55.101

我正在尝试按照本教程设置群集。

https://github.com/vangj/vagrant-hadoop-2.4.1-spark-1.0.1

1 个答案:

答案 0 :(得分:0)

这不是错误。在启动HDFS之前,需要格式化namenode。这与您运行Linux / Windows之前类似,您需要格式化磁盘。