簡體   English   中英

Hadoop2- YARN-ApplicationMaster UI-連接被拒絕的問題

[英]Hadoop2- YARN - ApplicationMaster UI - Connection refused issue

從RM WebUI(hadoop 2.6.0)訪問ApplicationMaster UI時出現以下問題。 沒有運行獨立的WebProxy服務器。 代理作為ResourceManager的一部分運行。

"HTTP ERROR 500
Problem accessing /proxy/application_1431357703844_0004/. Reason:
    Connection refused"

resourcemanager日志中的日志條目:

2015-05-11 19:25:01,837 INFO  webproxy.WebAppProxyServlet (WebAppProxyServlet.java:doGet(330)) - ubuntu is accessing unchecked http://slave1:51704/ which is the app master GUI of application_1431357703844_0004 owned by ubuntu
2015-05-11 19:25:01,845 WARN  mortbay.log (Slf4jLog.java:warn(76)) - /proxy/application_1431357703844_0004/: java.net.ConnectException: Connection refused

當我從RM中獲取AppMaster Url時,輸出如下

ubuntu@resource-manager:/mnt/logs/yarn$ wget -O- "http://slave1:51704/"
--2015-05-11 19:26:47--  http://slave1:51704/
HTTP request sent, awaiting response... 302 Found
Location: http://slave1:51704/mapreduce [following]
--2015-05-11 19:26:47--  http://slave1:51704/mapreduce
HTTP request sent, awaiting response... 302 Found
Location: http://slave1:8088/proxy/application_1431357703844_0004/mapreduce [following]
--2015-05-11 19:26:47--  http://slave1:8088/proxy/application_1431357703844_0004/mapreduce
Connecting to slave1|:8088... failed: Connection refused.

當我從運行appMaster的節點上獲取相同的AppMaster URL時,得到200條響應。

ubuntu@slave1:~$ wget -O- http://slave1:51704/
--2015-05-11 19:31:13--  http://slave1:51704/
Connecting to slave1|:51704... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://slave1:51704/mapreduce [following]
--2015-05-11 19:31:13--  http://slave1:51704/mapreduce
HTTP request sent, awaiting response... 200 OK
Length: 6846 (6.7K) [text/html]

這里要注意的主要區別是,當從RM發出請求時,nodemanager重定向到另一個URL“ http:// slave1:8088 / proxy / application_1431357703844_0004 / mapreduce ”,從而導致“連接被拒絕”。 但是,當請求是從NM運行的位置發出的時,它沒有重定向到上述URL,但是導致200條響應。

請幫助我了解重定向的不同行為並解決問題。

您可以在NodeManager設備上的yarn-site.xml中將yarn.resourcemanager.webapp.address指定為RM的主機地址。

<property>
    <name>yarn.resourcemanager.webapp.address</name>
    <value>rm.hostname.com:8088</value>
</property>

<property>
    <name>yarn.resourcemanager.webapp.address</name>
    <value>0.0.0.0:8088</value>
</property>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM