XiaoMi / minos

Minos is beyond a hadoop deployment system.
Apache License 2.0
522 stars 200 forks source link

About base_port in cfg file #21

Closed haidawyl closed 10 years ago

haidawyl commented 10 years ago

base_port具体指什么? 以hdfs-*.cfg为例,namenode的base_port默认是12200,配置时使用这个就可以吗?还是需要和hadoop的配置相一致?

我只安装了OWL,配置是按照Client的说明进行的,现在OWL能正常启动,但是没有数据展示。

wuzesheng commented 10 years ago

每个服务会有一个base_port, 每个服务内部分配的其它port都是以base_port为基础,在其上面+1, +2... 比如namenode的base_port是12200的话,通常它的rpc_port就是12200,http_port就是12201

wuzesheng commented 10 years ago

OWL没有数据展示是指?

haidawyl commented 10 years ago

那也就是说base_port和hadoop的配置没有关系了?我在owl/collector.log中看到

INFO 2014-03-11 10:52:47,165 collect 2509 140679860930368 <Task: hdfs/dlprc/namenode/0> waiting 7.436806 seconds for http://s120201:12201/jmx?qry=Hadoop:_... INFO 2014-03-11 10:52:47,166 collect 2509 140679860930368 <Task: hdfs/dlprc/datanode/0> waiting 3.145895 seconds for http://s120181-1:12401/jmx?qry=Hadoop:_... INFO 2014-03-11 10:52:47,166 collect 2509 140679860930368 <Task: hdfs/dlprc/datanode/1> waiting 6.051008 seconds for http://s120182-1:12401/jmx?qry=Hadoop:_... INFO 2014-03-11 10:52:47,166 collect 2509 140679860930368 <Task: hdfs/dlprc/datanode/2> waiting 2.595740 seconds for http://s120182-1:12411/jmx?qry=Hadoop:_...

但是我在对应的节点上并没有开上面显示的端口。

以NameNode为例,在浏览器上输入 http://s120201:12201/jmx?qry=Hadoop:* 显示无法访问 但是输入 http://s120201:50070/jmx?qry=Hadoop:* 能正常显示数据。

所以才有此问题。

在OWL首页内容前全都是alert.png这个图标,进入对应节点的页面后显示空白,也就是没有收集到数据。

wuzesheng commented 10 years ago

base_port跟hadoop有关系,就是hadoop每个服务监听的rpc port

haidawyl commented 10 years ago

修改了源码,直接指定base_port为http port,同时取消了base_port必须是100的整数倍的限制。