hadoop yarn ui applications list 研究

來源:互聯網
上載者:User

標籤:

Yarn提供的web介面可以看到applications曆史資料,Yarn Web UI的列表資料:

這部分資料的展現方式是前台分頁,意思就是比如有2w的曆史資料,將一次全部載入,第一次非常慢,後續操作很快。

列表資料最終調用到org.apache.hadoop.yarn.server.resourcemanager.webapp.AppsBlock類中

在render方法中有下面代碼

可以資料是從RMContext中獲得的。在RMContext的實作類別RMContextImpl中可以詳細知道資料存在什麼裡面,是ConcurrentHashMap

那整個叢集跑的applications的資料都放到這個Map中,時間長了,資料量上來怎麼 辦?有關於數量控制的配置,並在RMAppManager對這個Map的資料超過配置進行remove操作。相見如下

YarnConfiguration中的配置

RMAppManager中的重要代碼

可以預設配置值是1w,實際經驗是這個值保留平均每天作業數的2到3倍就可以,就是保留資料2,3天。不然使用1w資料確實很大,前台顯示緩慢也會給resourcemanager帶來不必要的壓力和效能瓶頸。

可以修改yarn-site.xml中的如下配置,修改預設值1w。

<property>
  <name>yarn.resourcemanager.max-completed-applications</name>
  <value>2000</value>
</property>


另外jobhistory的數量控制參考

http://IP:19888/jobhistory

<property>
  <name>mapreduce.jobhistory.joblist.cache.size</name>
  <value>10</value>
</property>
etc/hadoop/mapred-site.xml

參考

http://zh.hortonworks.com/blog/apache-hadoop-yarn-resourcemanager/ http://blog.csdn.net/wujun8/article/details/34102889

http://blog.csdn.net/skywalker_only/article/details/41726189

hadoop yarn ui applications list 研究

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.