亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

hadoop-005-YARN HA如何配置

發布時間:2021-12-07 14:49:53 來源:億速云 閱讀:158 作者:小新 欄目:云計算

這篇文章主要介紹了hadoop-005-YARN HA如何配置,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

yarn-site.xml 并使用zookeeper 來 管理resourcemanager的狀態

hadoop-005-YARN HA如何配置

<?xml version="1.0"?>

<configuration>
<property>
  <name>yarn.resourcemanager.ha.enabled</name>
  <value>true</value>
</property>
<property>
  <name>yarn.resourcemanager.cluster-id</name>
  <value>cluster1</value>
</property>
<property>
  <name>yarn.resourcemanager.ha.rm-ids</name>
  <value>rm1,rm2</value>
</property>
<property>
  <name>yarn.resourcemanager.hostname.rm1</name>
  <value>master</value>
</property>
<property>
  <name>yarn.resourcemanager.hostname.rm2</name>
  <value>slave01</value>
</property>
<property>
  <name>yarn.resourcemanager.webapp.address.rm1</name>
  <value>master:8088</value>
</property>
<property>
  <name>yarn.resourcemanager.webapp.address.rm2</name>
  <value>slave01:8088</value>
</property>
<property>
  <name>yarn.resourcemanager.zk-address</name>
  <value>master:2181,slave01:2181,slave02:2181</value>
</property>
<!-- Site specific YARN configuration properties -->

</configuration>

將配置同步到 master 和slave01 節點,然后啟動rm

hadoop-2.7.2/sbin/yarn-daemon.sh start resourcemanager

查看節點狀態

 hadoop-2.7.2/bin/yarn rmadmin -getServiceState rm1

 hadoop-2.7.2/bin/yarn rmadmin -getServiceState rm2

[jxlgzwh@slave01 ~]$ hadoop-2.7.2/sbin/yarn-daemon.sh start resourcemanager
starting resourcemanager, logging to /home/jxlgzwh/hadoop-2.7.2/logs/yarn-jxlgzwh-resourcemanager-slave01.out
[jxlgzwh@slave01 ~]$ jps
4160 DataNode
3986 NameNode
4853 ResourceManager
4885 Jps
3851 JournalNode
3502 QuorumPeerMain
4542 DFSZKFailoverController
[jxlgzwh@slave01 ~]$ hadoop-2.7.2/bin/yarn rmadmin -getServiceState rm1
standby
[jxlgzwh@slave01 ~]$ hadoop-2.7.2/bin/yarn rmadmin -getServiceState rm2
active
[jxlgzwh@slave01 ~]$ jps
4160 DataNode
5425 Jps
3986 NameNode
4853 ResourceManager
3851 JournalNode
3502 QuorumPeerMain
4542 DFSZKFailoverController
[jxlgzwh@slave01 ~]$ hadoop-2.7.2/sbin/yarn-daemon.sh stop resourcemanager
stopping resourcemanager
[jxlgzwh@slave01 ~]$ hadoop-2.7.2/bin/yarn rmadmin -getServiceState rm1
active
[jxlgzwh@slave01 ~]$ hadoop-2.7.2/bin/yarn rmadmin -getServiceState rm2
16/11/27 23:44:42 INFO ipc.Client: Retrying connect to server: slave01/192.168.31.130:8033. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 MILLISECONDS)
Operation failed: Call From slave01/192.168.31.130 to slave01:8033 failed on connection exception: java.net.ConnectException: 拒絕連接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
[jxlgzwh@slave01 ~]$

感謝你能夠認真閱讀完這篇文章,希望小編分享的“hadoop-005-YARN HA如何配置”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關注億速云行業資訊頻道,更多相關知識等著你來學習!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

冕宁县| 麦盖提县| 贵阳市| 永州市| 论坛| 虎林市| 黄山市| 凌源市| 扎赉特旗| 景宁| 龙山县| 修水县| 泊头市| 马山县| 碌曲县| 乐平市| 科技| 安丘市| 桐梓县| 博湖县| 容城县| 仙游县| 临清市| 西平县| 晴隆县| 闻喜县| 兴宁市| 正阳县| 鹰潭市| 义乌市| 逊克县| 临汾市| 东乡族自治县| 阳西县| 海安县| 读书| 拉萨市| 郓城县| 河西区| 秭归县| 定西市|