yarn-default.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <!-- Do not modify this file directly. Instead, copy entries that you -->
  18. <!-- wish to modify from this file into yarn-site.xml and change them -->
  19. <!-- there. If yarn-site.xml does not already exist, create it. -->
  20. <configuration>
  21. <!-- IPC Configs -->
  22. <property>
  23. <description>Factory to create client IPC classes.</description>
  24. <name>yarn.ipc.client.factory.class</name>
  25. </property>
  26. <property>
  27. <description>Type of serialization to use.</description>
  28. <name>yarn.ipc.serializer.type</name>
  29. <value>protocolbuffers</value>
  30. </property>
  31. <property>
  32. <description>Factory to create server IPC classes.</description>
  33. <name>yarn.ipc.server.factory.class</name>
  34. </property>
  35. <property>
  36. <description>Factory to create IPC exceptions.</description>
  37. <name>yarn.ipc.exception.factory.class</name>
  38. </property>
  39. <property>
  40. <description>Factory to create serializeable records.</description>
  41. <name>yarn.ipc.record.factory.class</name>
  42. </property>
  43. <property>
  44. <description>RPC class implementation</description>
  45. <name>yarn.ipc.rpc.class</name>
  46. <value>org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC</value>
  47. </property>
  48. <!-- Resource Manager Configs -->
  49. <property>
  50. <description>The address of the applications manager interface in the RM.</description>
  51. <name>yarn.resourcemanager.address</name>
  52. <value>0.0.0.0:8032</value>
  53. </property>
  54. <property>
  55. <description>The number of threads used to handle applications manager requests.</description>
  56. <name>yarn.resourcemanager.client.thread-count</name>
  57. <value>50</value>
  58. </property>
  59. <property>
  60. <description>The expiry interval for application master reporting.</description>
  61. <name>yarn.am.liveness-monitor.expiry-interval-ms</name>
  62. <value>600000</value>
  63. </property>
  64. <property>
  65. <description>The Kerberos principal for the resource manager.</description>
  66. <name>yarn.resourcemanager.principal</name>
  67. </property>
  68. <property>
  69. <description>The address of the scheduler interface.</description>
  70. <name>yarn.resourcemanager.scheduler.address</name>
  71. <value>0.0.0.0:8030</value>
  72. </property>
  73. <property>
  74. <description>Number of threads to handle scheduler interface.</description>
  75. <name>yarn.resourcemanager.scheduler.client.thread-count</name>
  76. <value>50</value>
  77. </property>
  78. <property>
  79. <description>The address of the RM web application.</description>
  80. <name>yarn.resourcemanager.webapp.address</name>
  81. <value>0.0.0.0:8088</value>
  82. </property>
  83. <property>
  84. <name>yarn.resourcemanager.resource-tracker.address</name>
  85. <value>0.0.0.0:8031</value>
  86. </property>
  87. <property>
  88. <description>Are acls enabled.</description>
  89. <name>yarn.acl.enable</name>
  90. <value>true</value>
  91. </property>
  92. <property>
  93. <description>ACL of who can be admin of the YARN cluster.</description>
  94. <name>yarn.admin.acl</name>
  95. <value>*</value>
  96. </property>
  97. <property>
  98. <description>The address of the RM admin interface.</description>
  99. <name>yarn.resourcemanager.admin.address</name>
  100. <value>0.0.0.0:8033</value>
  101. </property>
  102. <property>
  103. <description>Number of threads used to handle RM admin interface.</description>
  104. <name>yarn.resourcemanager.admin.client.thread-count</name>
  105. <value>1</value>
  106. </property>
  107. <property>
  108. <description>How often should the RM check that the AM is still alive.</description>
  109. <name>yarn.resourcemanager.amliveliness-monitor.interval-ms</name>
  110. <value>1000</value>
  111. </property>
  112. <property>
  113. <description>The maximum number of application master retries.</description>
  114. <name>yarn.resourcemanager.am.max-retries</name>
  115. <value>1</value>
  116. </property>
  117. <property>
  118. <description>How often to check that containers are still alive. </description>
  119. <name>yarn.resourcemanager.container.liveness-monitor.interval-ms</name>
  120. <value>600000</value>
  121. </property>
  122. <property>
  123. <description>The keytab for the resource manager.</description>
  124. <name>yarn.resourcemanager.keytab</name>
  125. <value>/etc/krb5.keytab</value>
  126. </property>
  127. <property>
  128. <description>How long to wait until a node manager is considered dead.</description>
  129. <name>yarn.nm.liveness-monitor.expiry-interval-ms</name>
  130. <value>600000</value>
  131. </property>
  132. <property>
  133. <description>How often to check that node managers are still alive.</description>
  134. <name>yarn.resourcemanager.nm.liveness-monitor.interval-ms</name>
  135. <value>1000</value>
  136. </property>
  137. <property>
  138. <description>Path to file with nodes to include.</description>
  139. <name>yarn.resourcemanager.nodes.include-path</name>
  140. <value></value>
  141. </property>
  142. <property>
  143. <description>Path to file with nodes to exclude.</description>
  144. <name>yarn.resourcemanager.nodes.exclude-path</name>
  145. <value></value>
  146. </property>
  147. <property>
  148. <description>Number of threads to handle resource tracker calls.</description>
  149. <name>yarn.resourcemanager.resource-tracker.client.thread-count</name>
  150. <value>50</value>
  151. </property>
  152. <property>
  153. <description>The class to use as the resource scheduler.</description>
  154. <name>yarn.resourcemanager.scheduler.class</name>
  155. </property>
  156. <property>
  157. <description>The minimum allocation size for every container request at the RM,
  158. in MBs. Memory requests lower than this won't take effect,
  159. and the specified value will get allocated at minimum.</description>
  160. <name>yarn.scheduler.minimum-allocation-mb</name>
  161. <value>128</value>
  162. </property>
  163. <property>
  164. <description>The maximum allocation size for every container request at the RM,
  165. in MBs. Memory requests higher than this won't take effect,
  166. and will get capped to this value.</description>
  167. <name>yarn.scheduler.maximum-allocation-mb</name>
  168. <value>10240</value>
  169. </property>
  170. <property>
  171. <description>The class to use as the persistent store.</description>
  172. <name>yarn.resourcemanager.store.class</name>
  173. </property>
  174. <property>
  175. <description>The address of the zookeeper instance to use with ZK store.</description>
  176. <name>yarn.resourcemanager.zookeeper-store.address</name>
  177. </property>
  178. <property>
  179. <description>The zookeeper session timeout for the zookeeper store.</description>
  180. <name>yarn.resourcemanager.zookeeper-store.session.timeout-ms</name>
  181. <value>60000</value>
  182. </property>
  183. <property>
  184. <description>The maximum number of completed applications RM keeps. </description>
  185. <name>yarn.resourcemanager.max-completed-applications</name>
  186. <value>10000</value>
  187. </property>
  188. <property>
  189. <description>Interval at which the delayed token removal thread runs</description>
  190. <name>yarn.resourcemanager.delayed.delegation-token.removal-interval-ms</name>
  191. <value>30000</value>
  192. </property>
  193. <property>
  194. <description>Interval for the roll over for the master key used to generate
  195. application tokens
  196. </description>
  197. <name>yarn.resourcemanager.application-tokens.master-key-rolling-interval-secs</name>
  198. <value>86400</value>
  199. </property>
  200. <!-- Node Manager Configs -->
  201. <property>
  202. <description>address of node manager IPC.</description>
  203. <name>yarn.nodemanager.address</name>
  204. <value>0.0.0.0:0</value>
  205. </property>
  206. <property>
  207. <description>Environment variables that should be forwarded from the NodeManager's environment to the container's.</description>
  208. <name>yarn.nodemanager.admin-env</name>
  209. <value>MALLOC_ARENA_MAX=$MALLOC_ARENA_MAX</value>
  210. </property>
  211. <property>
  212. <description>Environment variables that containers may override rather than use NodeManager's default.</description>
  213. <name>yarn.nodemanager.env-whitelist</name>
  214. <value>JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,YARN_HOME</value>
  215. </property>
  216. <property>
  217. <description>who will execute(launch) the containers.</description>
  218. <name>yarn.nodemanager.container-executor.class</name>
  219. <value>org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor</value>
  220. <!--<value>org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor</value>-->
  221. </property>
  222. <property>
  223. <description>Number of threads container manager uses.</description>
  224. <name>yarn.nodemanager.container-manager.thread-count</name>
  225. <value>20</value>
  226. </property>
  227. <property>
  228. <description>Number of threads used in cleanup.</description>
  229. <name>yarn.nodemanager.delete.thread-count</name>
  230. <value>4</value>
  231. </property>
  232. <property>
  233. <description>
  234. Number of seconds after an application finishes before the nodemanager's
  235. DeletionService will delete the application's localized file directory
  236. and log directory.
  237. To diagnose Yarn application problems, set this property's value large
  238. enough (for example, to 600 = 10 minutes) to permit examination of these
  239. directories. After changing the property's value, you must restart the
  240. nodemanager in order for it to have an effect.
  241. The roots of Yarn applications' work directories is configurable with
  242. the yarn.nodemanager.local-dirs property (see below), and the roots
  243. of the Yarn applications' log directories is configurable with the
  244. yarn.nodemanager.log-dirs property (see also below).
  245. </description>
  246. <name>yarn.nodemanager.delete.debug-delay-sec</name>
  247. <value>0</value>
  248. </property>
  249. <property>
  250. <description>Heartbeat interval to RM</description>
  251. <name>yarn.nodemanager.heartbeat.interval-ms</name>
  252. <value>1000</value>
  253. </property>
  254. <property>
  255. <description>Keytab for NM.</description>
  256. <name>yarn.nodemanager.keytab</name>
  257. <value>/etc/krb5.keytab</value>
  258. </property>
  259. <property>
  260. <description>List of directories to store localized files in. An
  261. application's localized file directory will be found in:
  262. ${yarn.nodemanager.local-dirs}/usercache/${user}/appcache/application_${appid}.
  263. Individual containers' work directories, called container_${contid}, will
  264. be subdirectories of this.
  265. </description>
  266. <name>yarn.nodemanager.local-dirs</name>
  267. <value>/tmp/nm-local-dir</value>
  268. </property>
  269. <property>
  270. <description>Address where the localizer IPC is.</description>
  271. <name>yarn.nodemanager.localizer.address</name>
  272. <value>0.0.0.0:8040</value>
  273. </property>
  274. <property>
  275. <description>Interval in between cache cleanups.</description>
  276. <name>yarn.nodemanager.localizer.cache.cleanup.interval-ms</name>
  277. <value>600000</value>
  278. </property>
  279. <property>
  280. <description>Target size of localizer cache in MB, per local directory.</description>
  281. <name>yarn.nodemanager.localizer.cache.target-size-mb</name>
  282. <value>10240</value>
  283. </property>
  284. <property>
  285. <description>Number of threads to handle localization requests.</description>
  286. <name>yarn.nodemanager.localizer.client.thread-count</name>
  287. <value>5</value>
  288. </property>
  289. <property>
  290. <description>Number of threads to use for localization fetching.</description>
  291. <name>yarn.nodemanager.localizer.fetch.thread-count</name>
  292. <value>4</value>
  293. </property>
  294. <property>
  295. <description>
  296. Where to store container logs. An application's localized log directory
  297. will be found in ${yarn.nodemanager.log-dirs}/application_${appid}.
  298. Individual containers' log directories will be below this, in directories
  299. named container_{$contid}. Each container directory will contain the files
  300. stderr, stdin, and syslog generated by that container.
  301. </description>
  302. <name>yarn.nodemanager.log-dirs</name>
  303. <value>/tmp/logs</value>
  304. </property>
  305. <property>
  306. <description>Whether to enable log aggregation</description>
  307. <name>yarn.log-aggregation-enable</name>
  308. <value>false</value>
  309. </property>
  310. <property>
  311. <description>Time in seconds to retain user logs. Only applicable if
  312. log aggregation is disabled
  313. </description>
  314. <name>yarn.nodemanager.log.retain-seconds</name>
  315. <value>10800</value>
  316. </property>
  317. <property>
  318. <description>Where to aggregate logs to.</description>
  319. <name>yarn.nodemanager.remote-app-log-dir</name>
  320. <value>/tmp/logs</value>
  321. </property>
  322. <property>
  323. <description>The remote log dir will be created at
  324. {yarn.nodemanager.remote-app-log-dir}/${user}/{thisParam}
  325. </description>
  326. <name>yarn.nodemanager.remote-app-log-dir-suffix</name>
  327. <value>logs</value>
  328. </property>
  329. <property>
  330. <description>Amount of physical memory, in MB, that can be allocated
  331. for containers.</description>
  332. <name>yarn.nodemanager.resource.memory-mb</name>
  333. <value>8192</value>
  334. </property>
  335. <property>
  336. <description>Ratio between virtual memory to physical memory when
  337. setting memory limits for containers. Container allocations are
  338. expressed in terms of physical memory, and virtual memory usage
  339. is allowed to exceed this allocation by this ratio.
  340. </description>
  341. <name>yarn.nodemanager.vmem-pmem-ratio</name>
  342. <value>2.1</value>
  343. </property>
  344. <property>
  345. <description>NM Webapp address.</description>
  346. <name>yarn.nodemanager.webapp.address</name>
  347. <value>0.0.0.0:8042</value>
  348. </property>
  349. <property>
  350. <description>How often to monitor containers.</description>
  351. <name>yarn.nodemanager.container-monitor.interval-ms</name>
  352. <value>3000</value>
  353. </property>
  354. <property>
  355. <description>Class that calculates containers current resource utilization.</description>
  356. <name>yarn.nodemanager.container-monitor.resource-calculator.class</name>
  357. </property>
  358. <property>
  359. <description>Frequency of running node health script.</description>
  360. <name>yarn.nodemanager.health-checker.interval-ms</name>
  361. <value>600000</value>
  362. </property>
  363. <property>
  364. <description>Script time out period.</description>
  365. <name>yarn.nodemanager.health-checker.script.timeout-ms</name>
  366. <value>1200000</value>
  367. </property>
  368. <property>
  369. <description>The health check script to run.</description>
  370. <name>yarn.nodemanager.health-checker.script.path</name>
  371. <value></value>
  372. </property>
  373. <property>
  374. <description>The arguments to pass to the health check script.</description>
  375. <name>yarn.nodemanager.health-checker.script.opts</name>
  376. <value></value>
  377. </property>
  378. <property>
  379. <description>Frequency of running disk health checker code.</description>
  380. <name>yarn.nodemanager.disk-health-checker.interval-ms</name>
  381. <value>120000</value>
  382. </property>
  383. <property>
  384. <description>The minimum fraction of number of disks to be healthy for the
  385. nodemanager to launch new containers. This correspond to both
  386. yarn-nodemanager.local-dirs and yarn.nodemanager.log-dirs. i.e. If there
  387. are less number of healthy local-dirs (or log-dirs) available, then
  388. new containers will not be launched on this node.</description>
  389. <name>yarn.nodemanager.disk-health-checker.min-healthy-disks</name>
  390. <value>0.25</value>
  391. </property>
  392. <property>
  393. <description>The path to the Linux container executor.</description>
  394. <name>yarn.nodemanager.linux-container-executor.path</name>
  395. </property>
  396. <property>
  397. <description>T-file compression types used to compress aggregated logs.</description>
  398. <name>yarn.nodemanager.log-aggregation.compression-type</name>
  399. <value>none</value>
  400. </property>
  401. <property>
  402. <description>The kerberos principal for the node manager.</description>
  403. <name>yarn.nodemanager.principal</name>
  404. <value></value>
  405. </property>
  406. <property>
  407. <name>yarn.nodemanager.aux-services</name>
  408. <value></value>
  409. <!-- <value>mapreduce.shuffle</value> -->
  410. </property>
  411. <property>
  412. <description>No. of ms to wait between sending a SIGTERM and SIGKILL to a container</description>
  413. <name>yarn.nodemanager.sleep-delay-before-sigkill.ms</name>
  414. <value>250</value>
  415. </property>
  416. <property>
  417. <description>Max time to wait for a process to come up when trying to cleanup a container</description>
  418. <name>yarn.nodemanager.process-kill-wait.ms</name>
  419. <value>2000</value>
  420. </property>
  421. <!--Map Reduce configuration-->
  422. <property>
  423. <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
  424. <value>org.apache.hadoop.mapred.ShuffleHandler</value>
  425. </property>
  426. <property>
  427. <name>mapreduce.job.jar</name>
  428. <value/>
  429. </property>
  430. <property>
  431. <name>mapreduce.job.hdfs-servers</name>
  432. <value>${fs.defaultFS}</value>
  433. </property>
  434. <!-- WebAppProxy Configuration-->
  435. <property>
  436. <description>The kerberos principal for the proxy, if the proxy is not
  437. running as part of the RM.</description>
  438. <name>yarn.web-proxy.principal</name>
  439. <value/>
  440. </property>
  441. <property>
  442. <description>Keytab for WebAppProxy, if the proxy is not running as part of
  443. the RM.</description>
  444. <name>yarn.web-proxy.keytab</name>
  445. </property>
  446. <property>
  447. <description>The address for the web proxy as HOST:PORT, if this is not
  448. given then the proxy will run as part of the RM</description>
  449. <name>yarn.web-proxy.address</name>
  450. <value/>
  451. </property>
  452. <property>
  453. <description>Classpath for typical applications.</description>
  454. <name>yarn.application.classpath</name>
  455. <value>
  456. $HADOOP_CONF_DIR,
  457. $HADOOP_COMMON_HOME/share/hadoop/common/*,
  458. $HADOOP_COMMON_HOME/share/hadoop/common/lib/*,
  459. $HADOOP_HDFS_HOME/share/hadoop/hdfs/*,
  460. $HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/*,
  461. $YARN_HOME/share/hadoop/mapreduce/*,
  462. $YARN_HOME/share/hadoop/mapreduce/lib/*
  463. </value>
  464. </property>
  465. </configuration>