【问题标题】:Why Hadoop name node connecting to weird [aca8ca1d.ipt.aol.com] hostname?为什么 Hadoop 名称节点连接到奇怪的 [aca8ca1d.ipt.aol.com] 主机名?
【发布时间】:2017-09-18 18:46:43
【问题描述】:

我正在使用mac系统并启动hadoop系统,使用命令:

start-dfs.sh

我的主机名是“主机名”命令返回的“ctpllt072.local”。 但是在连接启动名称节点时,我收到了一个奇怪的主机名和消息,如下所示:

Starting namenodes on [aca8ca1d.ipt.aol.com]
aca8ca1d.ipt.aol.com: ssh: connect to host aca8ca1d.ipt.aol.com port 22: Operation timed out

我的系统中没有任何指定的 [aca8ca1d.ipt.aol.com],既不在 /etc/hosts 也不在任何属性文件中。

这是我的 hdfs、yarn 和 core-site xml 文件:

核心站点.xml

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
   <property>
      <name>fs.defaultFS</name>
      <value>hdfs://172.168.***.***/</value>
   </property>
</configuration>

hdfs-site.xml

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
  <property>
    <name>dfs.replication</name>
    <value>1</value>
  </property>

  <property>
    <name>dfs.namenode.name.dir</name>
    <value>/Users/karan.verma/Documents/backups/h/hDir/hdfs/datanode</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>/Users/karan.verma/Documents/backups/h/hDir/hdfs/namenode</value >
  </property>
</configuration>

yarn-site.xml

<?xml version="1.0"?>

<configuration>

    <property>
        <name>yarn.nodemanager.aux-services</name>
        <value>mapreduce_shuffle</value>
    </property>
    <property>
        <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
        <value>org.apache.hadoop.mapred.ShuffleHandler</value>
    </property>

    <property>
        <name>yarn.resourcemanager.hostname</name>
        <value>127.0.0.1</value>
    </property>


        <property>
            <name>yarn.resourcemanager.address</name>
            <value>127.0.0.1:8032</value>
        </property>
        <property>
            <name>yarn.resourcemanager.scheduler.address</name>
            <value>127.0.0.1:8030</value>
        </property>
        <property>
            <name>yarn.resourcemanager.resource-tracker.address</name>
            <value>127.0.0.1:8031</value>
        </property>
</configuration>

在网上搜索了原因,但没有运气。请提出可能是什么问题以及如何解决它。

【问题讨论】:

    标签: hadoop hdfs hadoop2 hostname namenode


    【解决方案1】:

    得到了解决方案,我实际上是在尝试错误地连接 aol 服务器。 我的 IP 以 192.168.. 开头,而芦荟 ip 是 172.168..,如网上所述(附截图)。

    所以把我的配置改成

    <configuration>
       <property>
          <name>fs.defaultFS</name>
          <value>hdfs://192.168.***.***/</value>
       </property>
    </configuration>
    

    【讨论】:

      猜你喜欢
      • 2014-01-19
      • 1970-01-01
      • 2023-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-10
      相关资源
      最近更新 更多