hadoop的namenode和datanode服务没有在单线程模式下运行

sq1bmfud  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(340)

我在ubuntu 16.04上以单模式安装了Hadoop2.7.2。但是在启动hadoop之后,namenode和datanode服务都不会运行。

  1. hduser@saber-Studio-1435:/usr/local/hadoop$ start-all.sh
  2. This script is Deprecated.
  3. Instead use start-dfs.sh and start-yarn.sh
  4. 16/06/20 15:34:56 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  5. Starting namenodes on [localhost]
  6. localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hduser-namenode-saber-Studio-1435.out
  7. localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hduser-datanode-saber-Studio-1435.out
  8. Starting secondary namenodes [0.0.0.0]
  9. 0.0.0.0: secondarynamenode running as process 7214. Stop it first.
  10. 16/06/20 15:35:13 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  11. starting yarn daemons
  12. resourcemanager running as process 7374. Stop it first.
  13. localhost: nodemanager running as process 7502. Stop it first.

状态:

  1. hduser@saber-Studio-1435:/usr/local/hadoop$ jps
  2. 8747 Jps
  3. 7502 NodeManager
  4. 7374 ResourceManager
  5. 7214 SecondaryNameNode
fruv7luv

fruv7luv1#

  1. First stop the hadoop $HADOOP_HOME ./sbin/stop-all.sh
  2. Then format the hadoop ecosytem
  3. ./bin/hadoop namenode -format
  4. ./bin/hadoop datanode -format
  5. ./bin/hdfs namenode -format
  6. ./bin/hdfs datanode -format
  7. Then start agian using ./sbin/start-all.sh
  8. Then try jps on cli and if still does'nt works then remove the directory created for hdfs and recreate it using mkdir -p

相关问题