为什么hadoop名称节点连接到奇怪的[aca8ca1d.ipt.aol.com]主机名?

falq053o  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(309)

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

start-dfs.sh

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

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和核心站点xml文件:
core-site.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>

在网上搜索原因,但没有找到。请提出可能的问题和解决方法。

t3psigkw

t3psigkw1#

得到了解决方案,我实际上是试图连接美国在线服务器错误。我的ip从192.168开始。。芦荟的ip是172.168。。如网上所述(附截图)。

所以把我的配置改成

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

相关问题