如何在hadoop中指定datanode端口 [英] how to specify datanode port in hadoop

查看:1767
本文介绍了如何在hadoop中指定datanode端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用hadoop2.4.0进行测试。我必须在我的机器上配置hadoop,以便能够以伪分布模式运行hadoop,以便我可以在我的机器上独立测试。我也想让我的机器成为集群的一部分。



但是,我认为当datanodes和其他几个有默认端口的服务尝试运行时港口。所以任何机构都可以引导我,我怎样才能达到这个目的。



谢谢

解决方案

更改 hdfs-site.xml 中的以下设置:




  • dfs .datanode.address(例如:0.0.0.0:50010)

  • dfs.datanode.ipc.address

  • dfs.datanode.http.address

  • dfs.datanode.https.address


I am using hadoop2.4.0 for my testing purpose. I have to configure hadoop in my machine such that I will able to run hadoop in pseudo distributed mode , so that I can test independently on My machine. Also I want to make my machine as part of cluster.

But As I think issues will arise when datanodes and few other services which have there default port try to run on same port. So can any body guide me , how can I achive this.

Thanks

解决方案

Change following settings in hdfs-site.xml :

  • dfs.datanode.address (for example: 0.0.0.0:50010)
  • dfs.datanode.ipc.address
  • dfs.datanode.http.address
  • dfs.datanode.https.address

这篇关于如何在hadoop中指定datanode端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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