没有配置dfs.namenode.servicerpc-address或dfs.namenode.rpc-address [英] dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured

查看:635
本文介绍了没有配置dfs.namenode.servicerpc-address或dfs.namenode.rpc-address的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用一个名称节点和四个数据节点配置hadoop。我能够在一台机器上成功配置名称节点和作业跟踪器,并启动它。



但是在要配置数据节点的机器上,我做了以下内容:




  • 我将 hadoop-2.0.0-cdh4.1.2.tar.gz mr1-2.0.0-mr1-cdh4.1.2.tar.gz 放入一个文件夹中,并使用主站和从站设置配置。

  • master 文件中,我设置了配置为名称节点的机器的IP地址。
  • 在奴隶机器上,我设置了我的机器的IP地址,我解压缩了tar球。 当我尝试用命令启动数据节点

    $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ >

    我得到这个错误:

      java.io.IOException:配置错误: namenode地址dfs.namenode.servicerpc-address或dfs.namenode.rpc-address未配置。 

    我需要做什么?

    解决方案

    masters 文件的名称具有误导性。它应该包含SecondaryNameNode的地址,并由NameNode本身读取。 DataNodes与 masters 文件没有任何关系。您需要在 core-site.xml 配置文件中配置 fs.default.name



    您看到的错误也是误导并指出您错误配置参数。


    I was trying to configure hadoop with one name node and four data nodes. I was able to successfully configure the name node and job tracker on one machine and bring it up.

    But on my machine where the data node is to be configured I did the following:

    • I unzipped the hadoop-2.0.0-cdh4.1.2.tar.gz and mr1-2.0.0-mr1-cdh4.1.2.tar.gz into a folder and set up the configuration with master and slave.
    • In the master file I had set up the ip address of machine that was configured to be the name node.
    • In the slave machine I set up the ip address of my machine where I had unzipped the tar balls.

    When I try to start the data node with the command

    hdfs datanode
    

    I get this error:

    java.io.IOException: Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
    

    What do I need to do?

    解决方案

    The name of the masters file is misleading. It should contain the address of the SecondaryNameNode and is read by the NameNode itself. DataNodes do not have anything to do with the masters file. You need to configure fs.default.name on core-site.xml configuration file.

    The error you see is also misleading and points you to the wrong configuration parameter.

    这篇关于没有配置dfs.namenode.servicerpc-address或dfs.namenode.rpc-address的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆