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

[url=http://blog.csdn.net/xtj332/article/details/40350845]Does not contain a valid host:port authority: file:///[/url]

在进行[color=green]伪分布式Hadoop配置[/color]时出现信息如下:

[img]http://dl2.iteye.com/upload/attachment/0106/4709/432971b6-a60a-3339-8941-89549d094603.png[/img]

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>

启动成功后的界面如下:
[img]http://dl2.iteye.com/upload/attachment/0106/4711/3bc12b95-e558-36eb-8bc6-77d6c4fa096d.png[/img]

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

[url=http://sgq0085.iteye.com/blog/1879442]远程调用执行Hadoop Map/Reduce[/url]

[url=http://sgq0085.iteye.com/blog/1851294]Ubuntu12.04 + Hadoop 1.0.4[/url]

[url=http://www.cnblogs.com/jdksummer/articles/2521550.html]linux下设置ssh无密码登录[/url]
[url=http://blog.chinaunix.net/uid-26557245-id-3756703.html] linux 无密码登录[/url]
[img]http://dl2.iteye.com/upload/attachment/0107/0470/c96962fa-f479-38c0-99b4-fc5ee2d1b408.png[/img]

[url=http://hadoop.apache.org/docs/r1.0.4/cn/quickstart.html]Hadoop快速入门[/url]

[url=http://hadoop.apache.org/docs/r1.0.4/cn/cluster_setup.html]Hadoop集群搭建[/url]

[url=http://running.iteye.com/blog/904536]Hadoop回收站trash[/url]
[url=http://09094224.iteye.com/blog/2276807]Hadoop深入浅出实战经典视频教程(共22讲)[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值