jps后namenode和secondrynamenode

来源:3-3 Hadoop伪分布集群安装部署(下)

努力学习啊啊

2021-10-24 14:47

2021-10-24 14:41:13,001 ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Failed to start secondary namenode

java.lang.IllegalArgumentException: java.net.UnknownHostException: hadoop100

        at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:447)

        at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:171)

        at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:148)

        at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:234)

        at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:194)

        at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:690)

Caused by: java.net.UnknownHostException: hadoop100

        ... 6 more

2021-10-24 14:41:13,003 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1: ExitException

2021-10-24 14:41:13,005 INFO org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: SHUTDOWN_MSG:

/************************************************************

SHUTDOWN_MSG: Shutting down SecondaryNameNode at handoop100/192.168.31.134

************************************************************/


在百度上找了好多野没有解决

写回答 关注

3回答

  • 徐老师
    2021-10-24 16:52:48
    已采纳

    核心错误日志是这一句:

    Caused by: java.net.UnknownHostException: hadoop100


    表示不认识hadoop100这个主机名,需要配置hostname以及/etc/hosts

  • 努力学习啊啊
    2021-10-24 15:02:56

    已解决

  • 努力学习啊啊
    2021-10-24 14:48:34

    是jps后没有出现namenode和secondrynamenode



快速入门Hadoop3.0大数据处理

快速入门Hadoop3.0数据处理,轻松迈入大数据领域

16784 学习 · 74 问题

查看课程

相似问题