Hadoop2 無法訪問8088端口web頁面

I setup a hadoop cluster with two nodes hadoop01(master- 10.0.0.151) and hadoop02(slaves- 10.0.0.152) when a type start-dfs.sh and then visit website my_ip(just 10.0.0.151 above):50070. It's successful.

But when i type start-yarn.sh then visit website my_ip:8088. It's failed.

my yarn-site.xml:

yarn.nodemanager.aux-services

mapreduce_shuffle

yarn.nodemanager.aux-services.mapreduce.shuffle.class

org.apache.hadoop.mapred.ShuffleHandler

yarn.resourcemanager.address

hadoop01:8032

yarn.resourcemanager.scheduler.address

hadoop01:8030

yarn.resourcemanager.resource-tracker.address

hadoop01:8031

yarn.resourcemanager.admin.address

hadoop01:8033

yarn.resourcemanager.webapp.address

hadoop01:8088

core-site.xml:

fs.defaultFS

hdfs://hadoop01:8020

the same set as hadoop02(slave)

my hadoop01 hadoop-2.2.0/etc/hadoop/slaves set

hadoop01

hadoop02

After typing start-dfs.sh & start-yarn.sh then i type jps

hadoop01:

21594 NameNode

22345 NodeManager

22007 SecondaryNameNode

22171 ResourceManager

23147 Jps

21762 DataNode

hadoop02:

29861 NodeManager

30358 Jps

29665 DataNode

my /etc/hosts in hadoop01:

localhost? ? ? hadoop01

10.0.0.151? ? ? hadoop01

10.0.0.152? ? ? hadoop02

my /etc/hosts in hadoop02:

localhost? ? ? hadoop02

10.0.0.151? ? ? hadoop01

10.0.0.152? ? ? hadoop02

This bellow link is my yarn-nodemanager.log I upload to google dirvehttps://drive.google.com/file/d/0B7nCJ_XJWSrQN1BZVTVyOEgxd1E/edit?usp=sharingbut yarn-nodemanager.log doesn't appear ERROR if i didn't miss some information..

Please help me improve the problem why I can't visit the websitehttp://10.0.0.151:8088

**if need other information (such as hdfs-site.xml...etc) just tell me. I'll update..

netstat -tunalp | grep LISTEN

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50010? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 17442/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50075? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 17442/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50020? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 17442/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50090? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 17693/java

tcp? ? ? ? 0? ? ? 0 10.0.0.151:8020? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 17267/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50070? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 17267/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:22? ? ? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? -

tcp6? ? ? 0? ? ? 0 :::13562? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 21061/java

tcp6? ? ? 0? ? ? 0 10.0.0.151:8030? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 20881/java

tcp6? ? ? 0? ? ? 0 10.0.0.151:8031? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 20881/java

tcp6? ? ? 0? ? ? 0 10.0.0.151:8032? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 20881/java

tcp6? ? ? 0? ? ? 0 10.0.0.151:8033? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 20881/java

tcp6? ? ? 0? ? ? 0 :::33762? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 21061/java

tcp6? ? ? 0? ? ? 0 :::8040? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 21061/java

tcp6? ? ? 0? ? ? 0 :::8042? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 21061/java

tcp6? ? ? 0? ? ? 0 :::22? ? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? -

tcp6? ? ? 0? ? ? 0 10.0.0.151:8088? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? 20881/java

After disable ipv6 , then i type netstat -tunalp | grep LISTEN

tcp? ? ? ? 0? ? ? 0 0.0.0.0:13562? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30608/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50010? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 29967/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50075? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 29967/java

tcp? ? ? ? 0? ? ? 0 10.0.0.151:8030? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30424/java

tcp? ? ? ? 0? ? ? 0 10.0.0.151:8031? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30424/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:52992? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30608/java

tcp? ? ? ? 0? ? ? 0 10.0.0.151:8032? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30424/java

tcp? ? ? ? 0? ? ? 0 10.0.0.151:8033? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30424/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50020? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 29967/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:8040? ? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30608/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:8042? ? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30608/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50090? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30222/java

tcp? ? ? ? 0? ? ? 0 10.0.0.151:8020? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 29790/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:50070? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 29790/java

tcp? ? ? ? 0? ? ? 0 0.0.0.0:22? ? ? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? -

tcp? ? ? ? 0? ? ? 0 10.0.0.151:8088? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? LISTEN? ? ? 30424/java

tcp6? ? ? 0? ? ? 0 :::22? ? ? ? ? ? ? ? ? :::*? ? ? ? ? ? ? ? ? ? LISTEN? ? ? -


SOLVED:

In hdfs-site.xml, setthe value ofdfs.namenode.rpc-bind-hostto0.0.0.0and Hadoop will listen on both the private and public network interfaces allowing remote access and datanode access.

This is related tohttps://issues.apache.org/jira/browse/HADOOP-605; Hadoop configuration scripts have added the-Djava.net.preferIPv4Stack=trueflag to force IPv4 binding, but this is missing from the Yarn configuration script. You can fix this by adding at the end of bin/yarn (before the exec):

YARN_OPTS="$YARN_OPTS -Djava.net.preferIPv4Stack=true"

the reason is you should change 10.0.0.151:8088 to 0.0.0.0:8088. the method is open the yarn-site.xml, add: yarn.resourcemanager.webapp.address 0.0.0.0:8088

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖飘诗,帶你破解...
    沈念sama閱讀 216,402評論 6 499
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡致板,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,377評論 3 392
  • 文/潘曉璐 我一進店門咏窿,熙熙樓的掌柜王于貴愁眉苦臉地迎上來斟或,“玉大人,你說我怎么就攤上這事集嵌÷芗罚” “怎么了御毅?”我有些...
    開封第一講書人閱讀 162,483評論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長怜珍。 經(jīng)常有香客問我端蛆,道長,這世上最難降的妖魔是什么酥泛? 我笑而不...
    開封第一講書人閱讀 58,165評論 1 292
  • 正文 為了忘掉前任今豆,我火速辦了婚禮,結(jié)果婚禮上柔袁,老公的妹妹穿的比我還像新娘呆躲。我一直安慰自己,他們只是感情好捶索,可當(dāng)我...
    茶點故事閱讀 67,176評論 6 388
  • 文/花漫 我一把揭開白布歼秽。 她就那樣靜靜地躺著,像睡著了一般情组。 火紅的嫁衣襯著肌膚如雪燥筷。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,146評論 1 297
  • 那天院崇,我揣著相機與錄音肆氓,去河邊找鬼。 笑死底瓣,一個胖子當(dāng)著我的面吹牛谢揪,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播捐凭,決...
    沈念sama閱讀 40,032評論 3 417
  • 文/蒼蘭香墨 我猛地睜開眼拨扶,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了茁肠?” 一聲冷哼從身側(cè)響起患民,我...
    開封第一講書人閱讀 38,896評論 0 274
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎垦梆,沒想到半個月后匹颤,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,311評論 1 310
  • 正文 獨居荒郊野嶺守林人離奇死亡托猩,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,536評論 2 332
  • 正文 我和宋清朗相戀三年印蓖,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片京腥。...
    茶點故事閱讀 39,696評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡赦肃,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情他宛,我是刑警寧澤船侧,帶...
    沈念sama閱讀 35,413評論 5 343
  • 正文 年R本政府宣布,位于F島的核電站堕汞,受9級特大地震影響勺爱,放射性物質(zhì)發(fā)生泄漏晃琳。R本人自食惡果不足惜讯检,卻給世界環(huán)境...
    茶點故事閱讀 41,008評論 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望卫旱。 院中可真熱鬧人灼,春花似錦、人聲如沸顾翼。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,659評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽适贸。三九已至灸芳,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間拜姿,已是汗流浹背烙样。 一陣腳步聲響...
    開封第一講書人閱讀 32,815評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留蕊肥,地道東北人谒获。 一個月前我還...
    沈念sama閱讀 47,698評論 2 368
  • 正文 我出身青樓,卻偏偏與公主長得像壁却,于是被迫代替她去往敵國和親批狱。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,592評論 2 353

推薦閱讀更多精彩內(nèi)容