Does not contain a valid host:port authority: file:///

Does not contain a valid host:port authority: file:///

在进行 伪分布式Hadoop配置时出现信息如下:



http://127.0.0.1:50030可以访问,http://127.0.0.1:50070不能访问。说明map/reduce启动正常。namenode启动失败。

按照提示的意思是 host:port配置错误。因此错误的地方应该是conf/core-site.xml(主要配置HDFS/Hadoop的分布式文件系统)。经过检查发现配置
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
    <property>
         <name>fs.defaultFS</name>
         <value>hdfs://localhost:9000</value>
    </property>

</configuration>

中的name属性值输入错误,以下是修改后的配置
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
    <property>
         <name>fs.default.name</name>
         <value>hdfs://127.0.0.1:9000</value>
    </property>

</configuration>

启动成功后的界面如下:


PS:注意是使用的是127.0.0.1而不是localhost。建议使用127.0.0.1。

远程调用执行Hadoop Map/Reduce

Ubuntu12.04 + Hadoop 1.0.4

linux下设置ssh无密码登录
linux 无密码登录


Hadoop快速入门

Hadoop集群搭建

Hadoop回收站trash
Hadoop深入浅出实战经典视频教程(共22讲)

猜你喜欢

转载自songjianyong.iteye.com/blog/2190432