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

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

问题描述

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

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:

  • 我将 hadoop-2.0.0-cdh4.1.2.tar.gzmr1-2.0.0-mr1-cdh4.1.2.tar.gz 解压到一个文件夹并设置主从配置.
  • master 文件中,我设置了配置为名称节点的机器的 IP 地址.
  • 在从机中,我设置了我解压焦油球的机器的 IP 地址.
  • 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

我收到此错误:

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

我需要做什么?

推荐答案

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

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天全站免登陆