在hadoop 2.6中配置默认​​名称节点端口 [英] Configure default name node port in hadoop 2.6

查看:254
本文介绍了在hadoop 2.6中配置默认​​名称节点端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更新名称节点和datanode(Hadoop 2.6)的默认端口,我在core-site.xml中进行了必要的配置。

 <性> 
<名称> dfs.namenode.http-address< / name>
< value> hdfs:// localhost:64965< /值>
< / property>
<属性>
< name> dfs.namenode.secondary.http-address< / name>
< value> hdfs:// localhost:64956< /值>
< / property>

我也在更改后对名称节点进行了格式化,但仍然无法在Web UI上看到任何更改意味着当我点击
https:// localhost:64965 时,它显示的页面未找到。
和同样可以使用 https:// localhost:50070 进行访问。



所以这意味着它仍然指向默认端口。



任何人都可以帮我解决我缺乏的地方。 看起来这个过程仍然在前面的50070端口上运行。



1.使用这个过程,

  netstat -plten | grep java 

在那里您会找到

p>

  tcp 0 0 0.0.0.0:50070 0.0.0.0:* LISTEN 1000 1636154 14878 / java 

使用进程号杀死进程

  kill -9 14878 

这将强行终止进程。



2.now格式化名称节点并运行服务器


I want to update default port of name node and datanode (Hadoop 2.6), I did required configuration in core-site.xml.

<property>
    <name>dfs.namenode.http-address</name>
    <value>hdfs://localhost:64965</value>
</property>
<property>
     <name>dfs.namenode.secondary.http-address</name>
    <value>hdfs://localhost:64956</value>
</property>

I also formated name node after changes but still I am not able to see any change s on web UI means when I click on https://localhost:64965 it's showing page not found. and same can access using https://localhost:50070.

So it means it still pointing to default port.

Any one can help me where I am lacking.

解决方案

It seems the process is still running on the previous port 50070.

1.kill the process using,

netstat -plten |grep java

there you will find

tcp        0      0 0.0.0.0:50070           0.0.0.0:*               LISTEN      1000       1636154     14878/java

kill the process using process number

kill -9 14878

which will kill the process forcefully.

2.now format the name nodes and run the server

这篇关于在hadoop 2.6中配置默认​​名称节点端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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