hadoop1@xyzfsdemo:/usr/local/hadoop$ sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh Starting namenodes on [localhost] localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hadoop1-namenode-xyzfsdemo.out localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hadoop1-datanode-xyzfsdemo.out Starting secondary namenodes [0.0.0.0] 0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-hadoop1-secondarynamenode-xyzfsdemo.out starting yarn daemons starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-hadoop1-resourcemanager-xyzfsdemo.out localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-hadoop1-nodemanager-xyzfsdemo.out hadoop1@xyzfsdemo:/usr/local/hadoop$ jps 52396 DataNode 53151 Jps 53072 NodeManager 52660 SecondaryNameNode 52860 ResourceManager
答案 0 :(得分:0)
你应该在每次开始之前格式化你的namenode。
$HADOOP_INSTALL/hadoop/bin/hadoop namenode -format