我使用的是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/host或任何属性文件中都没有。
以下是我的hdfs、纱线和核心站点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>在网上搜索原因,但没有运气。请提出什么可能是问题和如何解决它。
发布于 2017-09-18 10:46:43
得到了解决方案,我实际上是试图错误地连接aol服务器。我的IP开始于192.168..和芦荟ip是172.168..,如网上所示(截图附后)。

因此将我的配置更改为
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://192.168.***.***/</value>
</property>
</configuration>https://stackoverflow.com/questions/46234965
复制相似问题