设置Hadoop集群 - NameNode冒烟测试“无法连接”

时间:2014-03-03 14:29:15

标签: hadoop

我无法从群集上的其他服务器连接到我的NameNode服务器。 namenode启动正常,我可以访问浏览到http://localhost:50070的namenode仪表板,但尝试浏览到http://hadoop-cluster-1:50070甚至使用IP地址都不起作用。我能ping ping hadoop-cluster-1和IP地址。我也可以跟踪端口并托管所有来自我在Firefox中“无法连接”的服务器。请参阅下面的值文件。

芯-site.xml中

<configuration>
  <property>
    <name>fs.defaultFS</name>
    <value>hdfs://hadoop-cluster-1.com:8020</value>
  </property>
  <property>
    <name>io.file.buffer.size</name>
    <value>8192</value>
  </property>
  <property>
    <name>fs.default.name</name>
    <value>hdfs://hadoop-cluster-1:8020</value>
  </property>
</configuration>

HDFS-site.xml中

<configuration>
  <property>
    <name>fs.defaultFS</name>
    <value>hdfs://hadoop-cluster-1:8020</value>
    <description>The port where the NameNode runs the HDFS protocol.
                     Combined with the NameNode's hostname to build its address.
    </description>
  </property> 
  <property>
    <name>dfs.namenode.rpc-address</name>
    <value>hadoop-cluster-1:8020</value>
    <description>
            RPC address that handles all clients requests. In the case of HA/Federation where multiple namenodes exist, the name ser
vice id is added to the name e.g. dfs.namenode.rpc-address.ns1 dfs.namenode.rpc-address.EXAMPLENAMESERVICE The value of this propert
y will take the form of nn-host1:rpc-port.
    </description>
  </property>
  <property>
    <name>dfs.namenode.name.dir</name>
    <value>file:///data/nn1,file:///data/nn2</value>
  </property>
  <property>
    <name>dfs.blocksize</name>
    <value>131072</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>file:///data/data1</value>
  </property>
  <property>
    <name>dfs.replication</name>
    <value>1</value>
  </property>
</configuration>

0 个答案:

没有答案