| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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. |
| --> |
| <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> |
| |
| <configuration> |
| |
| <!--The hostname of the Resource Manager, this MUST be changed! --> |
| <!--If you plan to deploy via marathon, use <taskId>.marathon.mesos where taskId is the name of your marathon task--> |
| <property> |
| <name>yarn.resourcemanager.hostname</name> |
| <value>CHANGEME</value> |
| </property> |
| |
| <!-- Necessary for log aggregation --> |
| <property> |
| <name>yarn.log-aggregation-enable</name> |
| <value>true</value> |
| </property> |
| |
| <property> |
| <description>Where to aggregate logs to.</description> |
| <name>yarn.nodemanager.remote-app-log-dir</name> |
| <value>/var/log/hadoop-yarn/apps</value> |
| </property> |
| |
| <!-- Aux Services needed for Map/Reduce and Myriad --> |
| <property> |
| <name>yarn.nodemanager.aux-services</name> |
| <value>mapreduce_shuffle,myriad_executor</value> |
| </property> |
| |
| <property> |
| <name>yarn.resourcemanager.store.class</name> |
| <value>org.apache.hadoop.yarn.server.resourcemanager.recovery.MyriadFileSystemRMStateStore</value> |
| </property> |
| |
| <property> |
| <name>yarn.resourcemanager.fs.state-store.uri</name> |
| <value>/var/yarn/rm/system</value> |
| </property> |
| |
| <property> |
| <name>yarn.resourcemanager.recovery.enabled</name> |
| <value>true</value> |
| </property> |
| |
| <property> |
| <name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name> |
| <value>org.apache.hadoop.mapred.ShuffleHandler</value> |
| </property> |
| |
| <property> |
| <name>yarn.nodemanager.aux-services.myriad_executor.class</name> |
| <value>org.apache.myriad.executor.MyriadExecutorAuxService</value> |
| </property> |
| |
| <!-- Myriad specific YARN configuration properties--> |
| <property> |
| <name>yarn.nodemanager.resource.cpu-vcores</name> |
| <value>${nodemanager.resource.cpu-vcores}</value> |
| </property> |
| |
| <property> |
| <name>yarn.scheduler.minimum-allocation-vcores</name> |
| <value>0</value> |
| </property> |
| |
| <property> |
| <name>yarn.nodemanager.resource.memory-mb</name> |
| <value>${nodemanager.resource.memory-mb}</value> |
| </property> |
| |
| <property> |
| <name>yarn.scheduler.minimum-allocation-mb</name> |
| <value>0</value> |
| </property> |
| |
| <!-- Dynamic Port Assignment enabled by Mesos --> |
| <property> |
| <name>yarn.nodemanager.address</name> |
| <value>${myriad.yarn.nodemanager.address}</value> |
| </property> |
| <property> |
| <name>yarn.nodemanager.webapp.address</name> |
| <value>${myriad.yarn.nodemanager.webapp.address}</value> |
| </property> |
| <property> |
| <name>yarn.nodemanager.webapp.https.address</name> |
| <value>${myriad.yarn.nodemanager.webapp.address}</value> |
| </property> |
| <property> |
| <name>yarn.nodemanager.localizer.address</name> |
| <value>${myriad.yarn.nodemanager.localizer.address}</value> |
| </property> |
| |
| <!-- Myriad Scheduler configuration --> |
| <property> |
| <name>yarn.resourcemanager.scheduler.class</name> |
| <value>org.apache.myriad.scheduler.yarn.MyriadFairScheduler</value> |
| </property> |
| |
| </configuration> |