Hadoop 2.7.3:配置错误:未配置namenode地址dfs.namenode.servicerpc-address或dfs.namenode.rpc-address

时间:2016-12-09 14:28:52

标签: hadoop

我有三台机器centOS 7,我想部署hadoop 2.7.3。

我收到以下错误:

[root@hadoop-master hadoop]# sbin/start-dfs.sh
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
Starting namenodes on []
cat: /opt/hadoop/hadoop/slaves: No file ou folder found
sed: -e expression n°1, caracter 6: option unknown pour `s'
Starting secondary namenodes [0.0.0.0]

我查了很多网站,但它并没有解决我的问题。有没有人有想法?

有关信息,请参阅我的mxl文件:

主站和从站的核心站点

<configuration>
  <property>
      <name>fs.default.name</name>
      <value>hdfs://hadoop-master:9000/</value>
  </property>
</configuration>

hdfs-site.xml for master

<configuration>
    <property>
        <name>dfs.replication</name>
        <value>2</value>
    </property>
    <property>
        <name>dfs.namenode.name.dir</name>
        <value>file:/opt/hadoop/hadoop/hdfs/namenode</value>
    </property>
</configuration>

hdfs-site.xml for slave

<configuration>
    <property>
        <name>dfs.replication</name>
        <value>2</value>
    </property>
    <property>
        <name>dfs.datanode.data.dir</name>
        <value>file:/opt/hadoop/hadoop/hdfs/datanode</value>
    </property>
</configuration>

纱-site.xml中

<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.resource.tracker.address</name>
        <value>hadoop-master:8025</value>
    </property>
    <property>
        <name>yarn.resourcemanager.scheduler.address</name>
        <value>hadoop-master:8030</value>
    </property>
    <property>
        <name>yarn.resourcemanager.address</name>
        <value>hadoop-master:8050</value>
    </property>
</configuration>

0 个答案:

没有答案