Hadoop,“浏览文件系统” ec2上断开的链接 [英] Hadoop, "Browse the filesystem" broken link on ec2

查看:108
本文介绍了Hadoop,“浏览文件系统” ec2上断开的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手,在EC2上设置hadoop。我正在尝试设置单节点hadoop设置。我已成功安装并在Amazon EC2实例之一上运行Hadoop 1.1.2。所有节点,namenode,datanode,jobtracker,mapred节点都在同一台机器上。

I am newbie to setting hadoop on EC2. I am trying to set-up single node hadoop setup. I have successfully installed and ran Hadoop 1.1.2 on one of the Amazon EC2 instance. All nodes, namenode, datanode, jobtracker, mapred node are on the same machine.

我的核心站点配置是

My core-site cofiguration is

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

当我启动Hadoop并转到web ui时,namenode UI将毫无问题地打开。 p>

When I start the Hadoop, and go to web ui, namenode UI opens without any problem.

http://<namenode>:50070/dfshealth.jsp

但是当点击浏览文件系统时,它会重定向到

But when clicked on the "Browse the filesystem", it redirects to

http://localhost:50075

这是不正确的。它应该是

which is incorrect. It should be something

http://<namenode>:50075. 

但是在这种情况下它失败了。

But in this case it failes.

请帮我弄清楚问题。

推荐答案

我建议在Hadoop配置中使用完全限定的主机名,I过去使用本地主机时遇到问题。也就是说,尝试设置以下内容(使用你的 $ hostname 替换):

I would advise using the fully qualified host names in your Hadoop configs, I've had issues when using localhost in the past. Namely, try setting the following (replace $hostname with yours):

在core-site.xml中:

In core-site.xml:

<property>
    <name>fs.default.name</name>
    <value>hdfs://$hostname.ec2.demdex.com:9000</value>
</property>

在hdfs-site.xml中:

In hdfs-site.xml:

<property>
    <name>dfs.http.address</name>
    <value>$hostname.ec2.demdex.com:50070</value>
</property>

<property>
    <name>dfs.datanode.http.address</name>
    <value>$hostname.ec2.demdex.com:50075</value>
</property>

这篇关于Hadoop,“浏览文件系统” ec2上断开的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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