java.io.IOException: 不完整的 HDFS URI,没有主机
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27956973/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
java.io.IOException: Incomplete HDFS URI, no host
提问by Shafiq
I am getting the following error when my hadoop starts.
我的 hadoop 启动时出现以下错误。
ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: java.io.IOException: Incomplete HDFS URI, no host: hdfs://XX.XX.XX.XX:X000
错误 org.apache.hadoop.hdfs.server.namenode.NameNode: java.io.IOException: 不完整的 HDFS URI,没有主机:hdfs://XX.XX.XX.XX:X000
and in my core-site.xml, following is the configuration
在我的 core-site.xml 中,以下是配置
<property>
<name>fs.default.name</name>
<value>hdfs://master_Server:9000/</value>
</property>
My cluster is in standalone mode.
我的集群处于独立模式。
采纳答案by HMS
As underscore(_) is not allowed. It may be the problem if your other configuration are ok.
由于下划线(_)是不允许的。如果您的其他配置没问题,则可能是问题所在。
Your configuration file should be something like
你的配置文件应该是这样的
<property>
<name>fs.default.name</name>
<value>hdfs://masterServer:9000/</value>
</property>