不正确的配置:namenode地址dfs.namenode.rpc-address未配置 [英] Incorrect configuration: namenode address dfs.namenode.rpc-address is not configured

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

问题描述

当我尝试启动DataNode时,出现此错误。从我读过的内容来看,RPC参数只用于HA配置,我没有设置(我认为)。

  2014-05-18 18:05:00,589 INFO [main] impl.MetricsSystemImpl(MetricsSystemImpl.java:shutdown(572)) -  DataNode指标系统关闭完成。 
2014-05-18 18:05:00,589 INFO [main] datanode.DataNode(DataNode.java:shutdown(1313)) - 关闭完成。
2014-05-18 18:05:00,614 FATAL [main] datanode.DataNode(DataNode.java:secureMain(1989)) - secureMain中的异常
java.io.IOException:不正确的配置:namenode地址没有配置dfs.namenode.servicerpc-address或dfs.namenode.rpc-address。
at org.apache.hadoop.hdfs.DFSUtil.getNNServiceRpcAddresses(DFSUtil.java:840)
at org.apache.hadoop.hdfs.server.datanode.BlockPoolManager.refreshNamenodes(BlockPoolManager.java:151)
at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:745)
at org.apache.hadoop.hdfs.server.datanode.DataNode。< init> (DataNode.java:278)

我的文件如下所示:



[root @ datanode1 conf.cluster]#cat core-site.xml

 <?xml version ?= 1.0 > 
<?xml-stylesheet type =text / xslhref =configuration.xsl?>

<配置>

<属性>
<名称> fs.defaultFS< / name>
< value> hdfs:// namenode:8020< / value>
< / property>

< / configuration>



cat hdfs-site.xml



 <?xml version =1.0?> 
<?xml-stylesheet type =text / xslhref =configuration.xsl?>

<配置>
<属性>
< name> dfs.datanode.data.dir< / name>
< value> / hdfs / data< / value>
< / property>
<属性>
<名称> dfs.permissions.superusergroup< /名称>
<值> hadoop< /值>
< / property>
< / configuration>

我使用的是最新的CDH5发行版。

 安装的软件包
名称:hadoop-hdfs-datanode
Arch:x86_64
版本:2.3.0 + cdh5.0.1 + 567
版本:1.cdh5.0.1.p0.46.el6

有关如何过去这个?



编辑:只需使用Cloudera管理器。

解决方案

也面临着同样的问题,最后发现fs.default.name值中有一个空格。截断解决问题的空间。上面的core-site.xml似乎没有空间,所以这个问题可能与我的不同。我的2美分

I am getting this error when I try and boot up a DataNode. From what I have read, the RPC paramters are only used for a HA configuration, which I am not setting up (I think).

2014-05-18 18:05:00,589 INFO  [main] impl.MetricsSystemImpl (MetricsSystemImpl.java:shutdown(572)) - DataNode metrics system shutdown complete.
2014-05-18 18:05:00,589 INFO  [main] datanode.DataNode (DataNode.java:shutdown(1313)) -     Shutdown complete.
2014-05-18 18:05:00,614 FATAL [main] datanode.DataNode (DataNode.java:secureMain(1989)) - Exception in secureMain
java.io.IOException: Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
at org.apache.hadoop.hdfs.DFSUtil.getNNServiceRpcAddresses(DFSUtil.java:840)
at   org.apache.hadoop.hdfs.server.datanode.BlockPoolManager.refreshNamenodes(BlockPoolManager.java:151)
at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:745)
at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:278)

My files look like:

[root@datanode1 conf.cluster]# cat core-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>

<property>
 <name>fs.defaultFS</name>
 <value>hdfs://namenode:8020</value>
</property>

</configuration>

cat hdfs-site.xml

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration>
<property>
 <name>dfs.datanode.data.dir</name>
 <value>/hdfs/data</value>
</property>
<property>
 <name>dfs.permissions.superusergroup</name>
 <value>hadoop</value>
</property>
</configuration>

I am using the latest CDH5 distro.

Installed Packages
Name        : hadoop-hdfs-datanode
Arch        : x86_64
Version     : 2.3.0+cdh5.0.1+567
Release     : 1.cdh5.0.1.p0.46.el6

Any helpful advice on how to get past this?

EDIT: Just use Cloudera manager.

解决方案

I too was facing the same issue and finally found that there was a space in fs.default.name value. truncating the space fixed the issue. The above core-site.xml doesn't seem to have space so the issue may be different from what i had. my 2 cents

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

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