• 启动Hadoop时遇到Name or service not knownstname 错误


    今天在启动Hadoop时遇到Name or service not knownstname这样的错误

    1 : Name or service not knownstname master  
    2 : Name or service not knownstname slaver1  
    3 : Name or service not knownstname slaver2

    原因:slaves文件可能被污染了。

    解决方法:删除掉slaves文件,重新建立一个slaves文件,并配置好就可以了。

     1 [root@master sbin]# ./start-all.sh 
     2 This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
     3 Starting namenodes on [master]
     4 The authenticity of host 'master (10.0.0.110)' can't be established.
     5 RSA key fingerprint is 90:b6:9e:d0:3e:76:27:ce:34:3b:d6:b4:41:5d:e7:31.
     6 Are you sure you want to continue connecting (yes/no)? yes
     7 master: Warning: Permanently added 'master,10.0.0.110' (RSA) to the list of known hosts.
     8 master: starting namenode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-namenode-master.out
     9 slaver1: starting datanode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-datanode-slaver1.out
    10 slaver2: starting datanode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-datanode-slaver2.out
    11 master: starting datanode, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/hadoop-root-datanode-master.out
    12 starting yarn daemons
    13 starting resourcemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-resourcemanager-master.out
    14 slaver2: starting nodemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-nodemanager-slaver2.out
    15 slaver1: starting nodemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-nodemanager-slaver1.out
    16 master: starting nodemanager, logging to /opt/hadoop_resources/hadoop-2.7.0/logs/yarn-root-nodemanager-master.out
    17 [root@master sbin]# jps
    18 1926 ResourceManager
    19 1597 NameNode
    20 2020 NodeManager
    21 2054 Jps
    22 1688 DataNode
    本文为博主原创文章,知识共享,开源精神,转载注明出处。欢迎技术交流 QQ819509322
  • 相关阅读:
    贪吃蛇大作战游戏攻略
    非对称加密算法RSA
    使用java库中的对称加密算法
    HMAC加密的消息摘要码
    md5和SHA校验码
    拼图可解的充要条件
    Base64编码
    java中文文档官方下载
    JAVA中对字符串的常见处理函数汇总
    测试工程师面试题
  • 原文地址:https://www.cnblogs.com/kangvcar/p/6013393.html
Copyright © 2020-2023  润新知