nuri 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.travis.yml +12 -0
  4. data/CHANGELOG +146 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE +28 -0
  7. data/README.md +64 -0
  8. data/Rakefile +15 -0
  9. data/VERSION +1 -0
  10. data/bin/delete_modules +11 -0
  11. data/bin/install_agent +18 -0
  12. data/bin/install_module +65 -0
  13. data/bin/nuri +519 -0
  14. data/bin/nuri.old +183 -0
  15. data/bin/push_model +16 -0
  16. data/examples/.gitignore +3 -0
  17. data/examples/bonfire.sfp +95 -0
  18. data/examples/bonfire/epcc.sfp +43 -0
  19. data/examples/bonfire/epcc0.sfp +49 -0
  20. data/examples/bonfire/epcc2.sfp +52 -0
  21. data/examples/bonfire/epcc2a.sfp +25 -0
  22. data/examples/bonfire/inria.sfp +72 -0
  23. data/examples/bonfire/inria0.sfp +49 -0
  24. data/examples/bonfire/inria2.sfp +71 -0
  25. data/examples/bonfire/inria2a.sfp +44 -0
  26. data/examples/bonfire/inria2b.sfp +54 -0
  27. data/examples/bonfire/inria2c.sfp +62 -0
  28. data/examples/bonfire/inria2d.sfp +71 -0
  29. data/examples/bonfire/inria2e.sfp +80 -0
  30. data/examples/bonfire/main.sfp +33 -0
  31. data/examples/bonfire/old/bonfire-1-1-1.sfp +76 -0
  32. data/examples/bonfire/old/bonfire-1-10-1.sfp +77 -0
  33. data/examples/bonfire/old/bonfire-1-2-1.sfp +58 -0
  34. data/examples/bonfire/old/bonfire-1-3-1.sfp +61 -0
  35. data/examples/bonfire/old/bonfire-1-4-1.sfp +64 -0
  36. data/examples/bonfire/old/bonfire-1-5-1.sfp +67 -0
  37. data/examples/bonfire/old/bonfire-1-6-1.sfp +82 -0
  38. data/examples/bonfire/old/bonfire-1-7-1.sfp +82 -0
  39. data/examples/bonfire/old/bonfire-1-8-1.sfp +79 -0
  40. data/examples/bonfire/old/bonfire-1-9-1.sfp +83 -0
  41. data/examples/bonfire/old/wp-test1a.sfp +38 -0
  42. data/examples/bonfire/old/wp-test1b.sfp +18 -0
  43. data/examples/bonfire/old/wp-test1c.sfp +7 -0
  44. data/examples/bonfire/old/wp-test2.sfp +47 -0
  45. data/examples/bonfire/old3/bonfire-epcc.sfp +57 -0
  46. data/examples/bonfire/old3/bonfire-inria.sfp +72 -0
  47. data/examples/bonfire/old3/bonfire-master.sfp +18 -0
  48. data/examples/bonfire/old3/bonfire.sfp +23 -0
  49. data/examples/bonfire/old3/bonfire2.sfp +49 -0
  50. data/examples/bonfire/old3/bonfire3.sfp +76 -0
  51. data/examples/bonfire/old3/bonfire4.sfp +78 -0
  52. data/examples/bonfire/old3/bonfire5.sfp +34 -0
  53. data/examples/bonfire/old3/bonfire5b.sfp +84 -0
  54. data/examples/bonfire/old3/hpvm6.sfp +22 -0
  55. data/examples/bonfire/old3/model.json +1 -0
  56. data/examples/bonfire/old3/test0.sfp +16 -0
  57. data/examples/bonfire/old3/test1.sfp +5 -0
  58. data/examples/bonfire/old3/test10.sfp +5 -0
  59. data/examples/bonfire/old3/test2.sfp +18 -0
  60. data/examples/bonfire/old3/test3.sfp +10 -0
  61. data/examples/bonfire/old3/test4.sfp +11 -0
  62. data/examples/bonfire/old3/test5.sfp +18 -0
  63. data/examples/bonfire/old3/test6.sfp +19 -0
  64. data/examples/bonfire/old3/test7.sfp +34 -0
  65. data/examples/bonfire/old3/test8.sfp +5 -0
  66. data/examples/bonfire/old3/test9.sfp +16 -0
  67. data/examples/bonfire/old3/wordpress-test-cluster.sfp +38 -0
  68. data/examples/bonfire/old3/wordpress-test.sfp +22 -0
  69. data/examples/bonfire/old3/wp-test-2.sfp +49 -0
  70. data/examples/bonfire/test.sfp +13 -0
  71. data/examples/generator.rb +66 -0
  72. data/examples/hadoop2.sfp +20 -0
  73. data/examples/hpcloud.sfp +18 -0
  74. data/examples/run.rb +17 -0
  75. data/examples/test.inc +0 -0
  76. data/examples/test.sfp +11 -0
  77. data/lib/naas/d3.js +5 -0
  78. data/lib/naas/d3.v3.min.js +5 -0
  79. data/lib/naas/index.css +0 -0
  80. data/lib/naas/index.html +18 -0
  81. data/lib/naas/index.js +18 -0
  82. data/lib/naas/jquery-1.10.2.min.js +6 -0
  83. data/lib/naas/jquery.js +6 -0
  84. data/lib/naas/naas.rb +160 -0
  85. data/lib/nuri.rb +62 -0
  86. data/lib/nuri/choreographer.rb +151 -0
  87. data/lib/nuri/constraint_helper.rb +9 -0
  88. data/lib/nuri/directory.rb +40 -0
  89. data/lib/nuri/master.rb +725 -0
  90. data/lib/nuri/net_helper.rb +65 -0
  91. data/lib/nuri/orchestrator.rb +224 -0
  92. data/lib/nuri/server.rb +212 -0
  93. data/modules/.gitignore +4 -0
  94. data/modules/apache/apache.rb +255 -0
  95. data/modules/apache/apache.rb.old +167 -0
  96. data/modules/apache/apache.sfp +146 -0
  97. data/modules/apache/apache.sfp.future +100 -0
  98. data/modules/apache/load_balancer +20 -0
  99. data/modules/apache/model.json +1 -0
  100. data/modules/apache/test.sfp +8 -0
  101. data/modules/aptpackage/aptpackage.rb +82 -0
  102. data/modules/aptpackage/aptpackage.sfp +5 -0
  103. data/modules/bonfire/.gitignore +2 -0
  104. data/modules/bonfire/README.md +12 -0
  105. data/modules/bonfire/bonfire.rb +60 -0
  106. data/modules/bonfire/bonfire.sfp +9 -0
  107. data/modules/bonfire/config.yml +4 -0
  108. data/modules/bonfire/helper.rb +149 -0
  109. data/modules/bonfire/stresstest.rb +144 -0
  110. data/modules/bonfire/test.sfp +8 -0
  111. data/modules/client/client.rb +22 -0
  112. data/modules/client/client.sfp +14 -0
  113. data/modules/cloud/cloud.rb +11 -0
  114. data/modules/cloud/cloud.sfp +26 -0
  115. data/modules/file/file.rb +91 -0
  116. data/modules/file/file.sfp +9 -0
  117. data/modules/hadoop1/core-site.xml +17 -0
  118. data/modules/hadoop1/hadoop-env.sh +55 -0
  119. data/modules/hadoop1/hadoop1.rb +384 -0
  120. data/modules/hadoop1/hadoop1.sfp +93 -0
  121. data/modules/hadoop1/hdfs-site.xml +16 -0
  122. data/modules/hadoop1/mapred-site.xml +17 -0
  123. data/modules/hadoop2/core-site.xml +31 -0
  124. data/modules/hadoop2/hadoop-env.sh +77 -0
  125. data/modules/hadoop2/hadoop2.rb +401 -0
  126. data/modules/hadoop2/hadoop2.sfp +114 -0
  127. data/modules/hadoop2/hdfs-site.xml +47 -0
  128. data/modules/hadoop2/mapred-site.xml +71 -0
  129. data/modules/hadoop2/ports +14 -0
  130. data/modules/hadoop2/yarn-env.sh +112 -0
  131. data/modules/hadoop2/yarn-site.xml +107 -0
  132. data/modules/hpcloud/.gitignore +2 -0
  133. data/modules/hpcloud/README.md +16 -0
  134. data/modules/hpcloud/config.yml +3 -0
  135. data/modules/hpcloud/example.sfp +18 -0
  136. data/modules/hpcloud/hpcloud.rb +241 -0
  137. data/modules/hpcloud/hpcloud.sfp +22 -0
  138. data/modules/hpcloud/test.sfp +5 -0
  139. data/modules/install_module +65 -0
  140. data/modules/machine/machine.rb +95 -0
  141. data/modules/machine/machine.sfp +9 -0
  142. data/modules/mockcloud/mockcloud.rb +20 -0
  143. data/modules/mockcloud/mockcloud.sfp +6 -0
  144. data/modules/mysql/mysql.rb +118 -0
  145. data/modules/mysql/mysql.sfp +38 -0
  146. data/modules/mysql/test.sfp +3 -0
  147. data/modules/node/node.rb +8 -0
  148. data/modules/node/node.sfp +7 -0
  149. data/modules/object/object.rb +7 -0
  150. data/modules/object/object.sfp +1 -0
  151. data/modules/os/os.rb +38 -0
  152. data/modules/os/os.sfp +11 -0
  153. data/modules/package/package.rb +26 -0
  154. data/modules/package/package.sfp +22 -0
  155. data/modules/package/test.sfp +6 -0
  156. data/modules/service/model.json +1 -0
  157. data/modules/service/service.rb +50 -0
  158. data/modules/service/service.sfp +46 -0
  159. data/modules/service/test.sfp +6 -0
  160. data/modules/tarpackage/tarpackage.rb +93 -0
  161. data/modules/tarpackage/tarpackage.sfp +5 -0
  162. data/modules/vm/vm.rb +8 -0
  163. data/modules/vm/vm.sfp +18 -0
  164. data/modules/wordpress/wordpress.rb +98 -0
  165. data/modules/wordpress/wordpress.sfp +34 -0
  166. data/modules/wordpresscluster/wordpresscluster.rb +150 -0
  167. data/modules/wordpresscluster/wordpresscluster.sfp +74 -0
  168. data/nuri.gemspec +26 -0
  169. metadata +281 -0
@@ -0,0 +1,114 @@
1
+ include "../tarpackage/tarpackage.sfp"
2
+
3
+ schema Hadoop2 extends TarPackage {
4
+ installed = true
5
+ running = true
6
+ configured = true
7
+
8
+ final package_name = "hadoop"
9
+ final version = "2.2.0"
10
+ final source = "http://www.mirrorservice.org/sites/ftp.apache.org/hadoop/common"
11
+ final home = "/opt/hadoop"
12
+
13
+ final user = "hadoop"
14
+ final group = "hadoop"
15
+ final password = "!"
16
+ final java_home = ""
17
+ final data_dir = "/tmp/hadoop"
18
+
19
+ sub install {
20
+ condition {
21
+ this.installed != true
22
+ }
23
+ effect {
24
+ this.installed = true
25
+ this.running = false
26
+ this.configured = false
27
+ }
28
+ }
29
+
30
+ sub uninstall {
31
+ condition {
32
+ this.running = false
33
+ this.installed = true
34
+ }
35
+ effect {
36
+ this.installed = false
37
+ this.configured = true
38
+ }
39
+ }
40
+
41
+ sub start {
42
+ condition {
43
+ this.running != true
44
+ this.installed = true
45
+ this.configured = true
46
+ }
47
+ effect {
48
+ this.running = true
49
+ }
50
+ }
51
+
52
+ sub stop {
53
+ condition {
54
+ this.running = true
55
+ }
56
+ effect {
57
+ this.running = false
58
+ }
59
+ }
60
+
61
+ sub configure {
62
+ condition {
63
+ this.running = false
64
+ this.configured = false
65
+ }
66
+ effect {
67
+ this.configured = true
68
+ }
69
+ }
70
+
71
+ }
72
+
73
+ schema Hadoop2Master extends Hadoop2 {
74
+ final cluster_name = "hadoopnuri"
75
+ }
76
+
77
+ schema Hadoop2Slave extends Hadoop2 {
78
+ master isref Hadoop2Master
79
+
80
+ sub install (master : Hadoop2Master) {
81
+ condition {
82
+ this.installed != true
83
+ master.parent.created = true
84
+ }
85
+ effect {
86
+ this.installed = true
87
+ this.running = false
88
+ this.configured = false
89
+ this.master = master
90
+ }
91
+ }
92
+
93
+ sub start (master : Hadoop2Master) {
94
+ condition {
95
+ this.running != true
96
+ this.installed = true
97
+ this.configured = true
98
+ this.master = master
99
+ master.running = true
100
+ }
101
+ effect {
102
+ this.running = true
103
+ }
104
+ }
105
+
106
+ sub stop {
107
+ condition {
108
+ this.running = true
109
+ }
110
+ effect {
111
+ this.running = false
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
3
+ <!--
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License. See accompanying LICENSE file.
15
+ -->
16
+
17
+ <!-- Put site-specific property overrides in this file. -->
18
+
19
+ <configuration>
20
+
21
+ <property>
22
+ <name>dfs.namenode.name.dir</name>
23
+ <value><%= dfs_namenode_name_dir %></value>
24
+ </property>
25
+
26
+ <property>
27
+ <name>dfs.namenode.hosts</name>
28
+ <value><%= dfs_namenode_hosts %></value>
29
+ </property>
30
+
31
+ <property>
32
+ <name>dfs.blocksize</name>
33
+ <value><%= dfs_blocksize %></value>
34
+ </property>
35
+
36
+ <property>
37
+ <name>dfs.namenode.handler.count</name>
38
+ <value><%= dfs_namenode_handler_count %></value>
39
+ </property>
40
+
41
+ <property>
42
+ <name>dfs.datanode.data.dir</name>
43
+ <value><%= dfs_datanode_data_dir %></value>
44
+ </property>
45
+
46
+
47
+ </configuration>
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0"?>
2
+ <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
3
+ <!--
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License. See accompanying LICENSE file.
15
+ -->
16
+
17
+ <!-- Put site-specific property overrides in this file. -->
18
+
19
+ <configuration>
20
+
21
+ <property>
22
+ <name>mapreduce.framework.name</name>
23
+ <value><%= mapreduce_framework_name %></value>
24
+ </property>
25
+ <property>
26
+ <name>mapreduce.map.memory.mb</name>
27
+ <value><%= mapreduce_map_memory_mb %></value>
28
+ </property>
29
+ <property>
30
+ <name>mapreduce.map.java.opts</name>
31
+ <value><%= mapreduce_map_java_opts %></value>
32
+ </property>
33
+ <property>
34
+ <name>mapreduce.reduce.memory.mb</name>
35
+ <value><%= mapreduce_reduce_memory_mb %></value>
36
+ </property>
37
+ <property>
38
+ <name>mapreduce.reduce.java.opts</name>
39
+ <value><%= mapreduce_reduce_java_opts %></value>
40
+ </property>
41
+ <property>
42
+ <name>mapreduce.task.io.sort.mb</name>
43
+ <value><%= mapreduce_task_io_sort_mb %></value>
44
+ </property>
45
+ <property>
46
+ <name>mapreduce.task.io.sort.factor</name>
47
+ <value><%= mapreduce_task_io_sort_factor %></value>
48
+ </property>
49
+ <property>
50
+ <name>mapreduce.reduce.shuffle.parallelcopies</name>
51
+ <value><%= mapreduce_reduce_shuffle_parallelcopies %></value>
52
+ </property>
53
+ <property>
54
+ <name>mapreduce.jobhistory.address</name>
55
+ <value><%= master %>:10020</value>
56
+ </property>
57
+ <property>
58
+ <name>mapreduce.jobhistory.webapp.address</name>
59
+ <value><%= master %>:19888</value>
60
+ </property>
61
+ <property>
62
+ <name>mapreduce.jobhistory.intermediate-done-dir</name>
63
+ <value>/mr-history/tmp</value>
64
+ </property>
65
+ <property>
66
+ <name>mapreduce.jobhistory.done-dir</name>
67
+ <value>/mr-history/done</value>
68
+ </property>
69
+
70
+
71
+ </configuration>
@@ -0,0 +1,14 @@
1
+ 8031
2
+ 8088
3
+ 10020
4
+ 19888
5
+ 50010
6
+ 50020
7
+ 50070
8
+ 50075
9
+ 54310
10
+ 54311
11
+ 54312
12
+ 54313
13
+ 54314
14
+ 54315
@@ -0,0 +1,112 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # User for YARN daemons
17
+ export HADOOP_YARN_USER=${HADOOP_YARN_USER:-yarn}
18
+
19
+ # resolve links - $0 may be a softlink
20
+ export YARN_CONF_DIR="${YARN_CONF_DIR:-$HADOOP_YARN_HOME/conf}"
21
+
22
+ # some Java parameters
23
+ export JAVA_HOME="<%= java_home %>"
24
+ if [ "$JAVA_HOME" != "" ]; then
25
+ #echo "run java in $JAVA_HOME"
26
+ JAVA_HOME=$JAVA_HOME
27
+ fi
28
+
29
+ if [ "$JAVA_HOME" = "" ]; then
30
+ echo "Error: JAVA_HOME is not set."
31
+ exit 1
32
+ fi
33
+
34
+ JAVA=$JAVA_HOME/bin/java
35
+ JAVA_HEAP_MAX=-Xmx1000m
36
+
37
+ # For setting YARN specific HEAP sizes please use this
38
+ # Parameter and set appropriately
39
+ # YARN_HEAPSIZE=1000
40
+
41
+ # check envvars which might override default args
42
+ if [ "$YARN_HEAPSIZE" != "" ]; then
43
+ JAVA_HEAP_MAX="-Xmx""$YARN_HEAPSIZE""m"
44
+ fi
45
+
46
+ # Resource Manager specific parameters
47
+
48
+ # Specify the max Heapsize for the ResourceManager using a numerical value
49
+ # in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
50
+ # the value to 1000.
51
+ # This value will be overridden by an Xmx setting specified in either YARN_OPTS
52
+ # and/or YARN_RESOURCEMANAGER_OPTS.
53
+ # If not specified, the default value will be picked from either YARN_HEAPMAX
54
+ # or JAVA_HEAP_MAX with YARN_HEAPMAX as the preferred option of the two.
55
+ #export YARN_RESOURCEMANAGER_HEAPSIZE=1000
56
+
57
+ # Specify the JVM options to be used when starting the ResourceManager.
58
+ # These options will be appended to the options specified as YARN_OPTS
59
+ # and therefore may override any similar flags set in YARN_OPTS
60
+ #export YARN_RESOURCEMANAGER_OPTS=
61
+
62
+ # Node Manager specific parameters
63
+
64
+ # Specify the max Heapsize for the NodeManager using a numerical value
65
+ # in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
66
+ # the value to 1000.
67
+ # This value will be overridden by an Xmx setting specified in either YARN_OPTS
68
+ # and/or YARN_NODEMANAGER_OPTS.
69
+ # If not specified, the default value will be picked from either YARN_HEAPMAX
70
+ # or JAVA_HEAP_MAX with YARN_HEAPMAX as the preferred option of the two.
71
+ #export YARN_NODEMANAGER_HEAPSIZE=1000
72
+
73
+ # Specify the JVM options to be used when starting the NodeManager.
74
+ # These options will be appended to the options specified as YARN_OPTS
75
+ # and therefore may override any similar flags set in YARN_OPTS
76
+ #export YARN_NODEMANAGER_OPTS=
77
+
78
+ # so that filenames w/ spaces are handled correctly in loops below
79
+ IFS=
80
+
81
+
82
+ # default log directory & file
83
+ if [ "$YARN_LOG_DIR" = "" ]; then
84
+ YARN_LOG_DIR="$HADOOP_YARN_HOME/logs"
85
+ fi
86
+ if [ "$YARN_LOGFILE" = "" ]; then
87
+ YARN_LOGFILE='yarn.log'
88
+ fi
89
+
90
+ # default policy file for service-level authorization
91
+ if [ "$YARN_POLICYFILE" = "" ]; then
92
+ YARN_POLICYFILE="hadoop-policy.xml"
93
+ fi
94
+
95
+ # restore ordinary behaviour
96
+ unset IFS
97
+
98
+
99
+ YARN_OPTS="$YARN_OPTS -Dhadoop.log.dir=$YARN_LOG_DIR"
100
+ YARN_OPTS="$YARN_OPTS -Dyarn.log.dir=$YARN_LOG_DIR"
101
+ YARN_OPTS="$YARN_OPTS -Dhadoop.log.file=$YARN_LOGFILE"
102
+ YARN_OPTS="$YARN_OPTS -Dyarn.log.file=$YARN_LOGFILE"
103
+ YARN_OPTS="$YARN_OPTS -Dyarn.home.dir=$YARN_COMMON_HOME"
104
+ YARN_OPTS="$YARN_OPTS -Dyarn.id.str=$YARN_IDENT_STRING"
105
+ YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
106
+ YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-INFO,console}"
107
+ if [ "x$JAVA_LIBRARY_PATH" != "x" ]; then
108
+ YARN_OPTS="$YARN_OPTS -Djava.library.path=$JAVA_LIBRARY_PATH"
109
+ fi
110
+ YARN_OPTS="$YARN_OPTS -Dyarn.policy.file=$YARN_POLICYFILE"
111
+
112
+
@@ -0,0 +1,107 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License. See accompanying LICENSE file.
14
+ -->
15
+ <configuration>
16
+
17
+ <!-- Site specific YARN configuration properties -->
18
+
19
+ <property>
20
+ <name>yarn.acl.enable</name>
21
+ <value>false</value>
22
+ </property>
23
+
24
+ <property>
25
+ <name>yarn.admin.acl</name>
26
+ <value>*</value>
27
+ </property>
28
+
29
+ <property>
30
+ <name>yarn.log-aggregation-enable</name>
31
+ <value>false</value>
32
+ </property>
33
+
34
+ <property>
35
+ <name>yarn.resourcemanager.address</name>
36
+ <value><%= master %>:54311</value>
37
+ </property>
38
+ <property>
39
+ <name>yarn.resourcemanager.scheduler.address</name>
40
+ <value><%= master %>:54312</value>
41
+ </property>
42
+ <property>
43
+ <name>yarn.resourcemanager.admin.address</name>
44
+ <value><%= master %>:54313</value>
45
+ </property>
46
+ <property>
47
+ <name>yarn.resourcemanager.webapp.address</name>
48
+ <value><%= master %>:54314</value>
49
+ </property>
50
+ <property>
51
+ <name>yarn.resourcemanager.scheduler.class</name>
52
+ <value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler</value>
53
+ </property>
54
+ <property>
55
+ <name>yarn.web-proxy.address</name>
56
+ <value><%= master %>:54315</value>
57
+ </property>
58
+ <property>
59
+ <name>yarn.scheduler.minimum-allocation-mb</name>
60
+ <value>256</value>
61
+ </property>
62
+ <property>
63
+ <name>yarn.scheduler.maximum-allocation-mb</name>
64
+ <value>1024</value>
65
+ </property>
66
+ <property>
67
+ <name>yarn.nodemanager.resource.memory-mb</name>
68
+ <value>512</value>
69
+ </property>
70
+ <property>
71
+ <name>yarn.nodemanager.vmem-pmem-ratio</name>
72
+ <value>2</value>
73
+ </property>
74
+ <property>
75
+ <name>yarn.nodemanager.local-dirs</name>
76
+ <value><%= yarn_local_dir %></value>
77
+ </property>
78
+ <property>
79
+ <name>yarn.nodemanager.log-dirs</name>
80
+ <value><%= yarn_log_dir %></value>
81
+ </property>
82
+ <property>
83
+ <name>yarn.nodemanager.log.retain-seconds</name>
84
+ <value>10800</value>
85
+ </property>
86
+ <property>
87
+ <name>yarn.nodemanager.remote-app-log-dir</name>
88
+ <value>/logs</value>
89
+ </property>
90
+ <property>
91
+ <name>yarn.nodemanager.remote-app-log-dir-suffix</name>
92
+ <value>logs</value>
93
+ </property>
94
+ <property>
95
+ <name>yarn.nodemanager.aux-services</name>
96
+ <value>mapreduce_shuffle</value>
97
+ </property>
98
+ <property>
99
+ <name>yarn.log-aggregation.retain-seconds</name>
100
+ <value>-1</value>
101
+ </property>
102
+ <property>
103
+ <name>yarn.log-aggregation.retain-check-interval-seconds</name>
104
+ <value>-1</value>
105
+ </property>
106
+
107
+ </configuration>