Skip to content

Instantly share code, notes, and snippets.

@oza
Last active January 20, 2018 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oza/7055279 to your computer and use it in GitHub Desktop.
Save oza/7055279 to your computer and use it in GitHub Desktop.
yarn-site.xml for ResourceManager HA
<?xml version="1.0"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.resourcemanager.ha.enabled</name>
<value>true</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.ha.id</name>
<value>rm1</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.ha.rm-ids</name>
<value>rm1,rm2</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.address.rm1</name>
<value>localhost:8032</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.hostname</name>
<value>localhost</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.scheduler.address.rm1</name>
<value>${yarn.resourcemanager.hostname}:8030</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.admin.address.rm1</name>
<value>${yarn.resourcemanager.hostname}:8033</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.resource-tracker.address.rm1</name>
<value>${yarn.resourcemanager.hostname}:8031</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.webapp.address.rm1</name>
<value>${yarn.resourcemanager.hostname}:8088</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.webapp.https.address.rm1</name>
<value>${yarn.resourcemanager.hostname}:8090</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.recovery.enabled</name>
<value>true</value>
<description></description>
</property>
<property>
<name>yarn.resourcemanager.store.class</name>
<value>org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore</value>
<description>
The class to use as the persistent store.
MemoryRMStateStore, NullRMStateStore, FileSystemRMStateStore,
ZKRMStateStore are available currently.
Default value is MemoryRMStateStore.
</description>
</property>
<property>
<name>yarn.resourcemanager.zk-state-store.address</name>
<value>127.0.0.1:2181</value>
<description>
</description>
</property>
<property>
<name>yarn.resourcemanager.state-store.max-completed-applications</name>
<value>1000</value>
<description>
</description>
</property>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment