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.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.travis.yml +12 -0
- data/CHANGELOG +146 -0
- data/Gemfile +3 -0
- data/LICENSE +28 -0
- data/README.md +64 -0
- data/Rakefile +15 -0
- data/VERSION +1 -0
- data/bin/delete_modules +11 -0
- data/bin/install_agent +18 -0
- data/bin/install_module +65 -0
- data/bin/nuri +519 -0
- data/bin/nuri.old +183 -0
- data/bin/push_model +16 -0
- data/examples/.gitignore +3 -0
- data/examples/bonfire.sfp +95 -0
- data/examples/bonfire/epcc.sfp +43 -0
- data/examples/bonfire/epcc0.sfp +49 -0
- data/examples/bonfire/epcc2.sfp +52 -0
- data/examples/bonfire/epcc2a.sfp +25 -0
- data/examples/bonfire/inria.sfp +72 -0
- data/examples/bonfire/inria0.sfp +49 -0
- data/examples/bonfire/inria2.sfp +71 -0
- data/examples/bonfire/inria2a.sfp +44 -0
- data/examples/bonfire/inria2b.sfp +54 -0
- data/examples/bonfire/inria2c.sfp +62 -0
- data/examples/bonfire/inria2d.sfp +71 -0
- data/examples/bonfire/inria2e.sfp +80 -0
- data/examples/bonfire/main.sfp +33 -0
- data/examples/bonfire/old/bonfire-1-1-1.sfp +76 -0
- data/examples/bonfire/old/bonfire-1-10-1.sfp +77 -0
- data/examples/bonfire/old/bonfire-1-2-1.sfp +58 -0
- data/examples/bonfire/old/bonfire-1-3-1.sfp +61 -0
- data/examples/bonfire/old/bonfire-1-4-1.sfp +64 -0
- data/examples/bonfire/old/bonfire-1-5-1.sfp +67 -0
- data/examples/bonfire/old/bonfire-1-6-1.sfp +82 -0
- data/examples/bonfire/old/bonfire-1-7-1.sfp +82 -0
- data/examples/bonfire/old/bonfire-1-8-1.sfp +79 -0
- data/examples/bonfire/old/bonfire-1-9-1.sfp +83 -0
- data/examples/bonfire/old/wp-test1a.sfp +38 -0
- data/examples/bonfire/old/wp-test1b.sfp +18 -0
- data/examples/bonfire/old/wp-test1c.sfp +7 -0
- data/examples/bonfire/old/wp-test2.sfp +47 -0
- data/examples/bonfire/old3/bonfire-epcc.sfp +57 -0
- data/examples/bonfire/old3/bonfire-inria.sfp +72 -0
- data/examples/bonfire/old3/bonfire-master.sfp +18 -0
- data/examples/bonfire/old3/bonfire.sfp +23 -0
- data/examples/bonfire/old3/bonfire2.sfp +49 -0
- data/examples/bonfire/old3/bonfire3.sfp +76 -0
- data/examples/bonfire/old3/bonfire4.sfp +78 -0
- data/examples/bonfire/old3/bonfire5.sfp +34 -0
- data/examples/bonfire/old3/bonfire5b.sfp +84 -0
- data/examples/bonfire/old3/hpvm6.sfp +22 -0
- data/examples/bonfire/old3/model.json +1 -0
- data/examples/bonfire/old3/test0.sfp +16 -0
- data/examples/bonfire/old3/test1.sfp +5 -0
- data/examples/bonfire/old3/test10.sfp +5 -0
- data/examples/bonfire/old3/test2.sfp +18 -0
- data/examples/bonfire/old3/test3.sfp +10 -0
- data/examples/bonfire/old3/test4.sfp +11 -0
- data/examples/bonfire/old3/test5.sfp +18 -0
- data/examples/bonfire/old3/test6.sfp +19 -0
- data/examples/bonfire/old3/test7.sfp +34 -0
- data/examples/bonfire/old3/test8.sfp +5 -0
- data/examples/bonfire/old3/test9.sfp +16 -0
- data/examples/bonfire/old3/wordpress-test-cluster.sfp +38 -0
- data/examples/bonfire/old3/wordpress-test.sfp +22 -0
- data/examples/bonfire/old3/wp-test-2.sfp +49 -0
- data/examples/bonfire/test.sfp +13 -0
- data/examples/generator.rb +66 -0
- data/examples/hadoop2.sfp +20 -0
- data/examples/hpcloud.sfp +18 -0
- data/examples/run.rb +17 -0
- data/examples/test.inc +0 -0
- data/examples/test.sfp +11 -0
- data/lib/naas/d3.js +5 -0
- data/lib/naas/d3.v3.min.js +5 -0
- data/lib/naas/index.css +0 -0
- data/lib/naas/index.html +18 -0
- data/lib/naas/index.js +18 -0
- data/lib/naas/jquery-1.10.2.min.js +6 -0
- data/lib/naas/jquery.js +6 -0
- data/lib/naas/naas.rb +160 -0
- data/lib/nuri.rb +62 -0
- data/lib/nuri/choreographer.rb +151 -0
- data/lib/nuri/constraint_helper.rb +9 -0
- data/lib/nuri/directory.rb +40 -0
- data/lib/nuri/master.rb +725 -0
- data/lib/nuri/net_helper.rb +65 -0
- data/lib/nuri/orchestrator.rb +224 -0
- data/lib/nuri/server.rb +212 -0
- data/modules/.gitignore +4 -0
- data/modules/apache/apache.rb +255 -0
- data/modules/apache/apache.rb.old +167 -0
- data/modules/apache/apache.sfp +146 -0
- data/modules/apache/apache.sfp.future +100 -0
- data/modules/apache/load_balancer +20 -0
- data/modules/apache/model.json +1 -0
- data/modules/apache/test.sfp +8 -0
- data/modules/aptpackage/aptpackage.rb +82 -0
- data/modules/aptpackage/aptpackage.sfp +5 -0
- data/modules/bonfire/.gitignore +2 -0
- data/modules/bonfire/README.md +12 -0
- data/modules/bonfire/bonfire.rb +60 -0
- data/modules/bonfire/bonfire.sfp +9 -0
- data/modules/bonfire/config.yml +4 -0
- data/modules/bonfire/helper.rb +149 -0
- data/modules/bonfire/stresstest.rb +144 -0
- data/modules/bonfire/test.sfp +8 -0
- data/modules/client/client.rb +22 -0
- data/modules/client/client.sfp +14 -0
- data/modules/cloud/cloud.rb +11 -0
- data/modules/cloud/cloud.sfp +26 -0
- data/modules/file/file.rb +91 -0
- data/modules/file/file.sfp +9 -0
- data/modules/hadoop1/core-site.xml +17 -0
- data/modules/hadoop1/hadoop-env.sh +55 -0
- data/modules/hadoop1/hadoop1.rb +384 -0
- data/modules/hadoop1/hadoop1.sfp +93 -0
- data/modules/hadoop1/hdfs-site.xml +16 -0
- data/modules/hadoop1/mapred-site.xml +17 -0
- data/modules/hadoop2/core-site.xml +31 -0
- data/modules/hadoop2/hadoop-env.sh +77 -0
- data/modules/hadoop2/hadoop2.rb +401 -0
- data/modules/hadoop2/hadoop2.sfp +114 -0
- data/modules/hadoop2/hdfs-site.xml +47 -0
- data/modules/hadoop2/mapred-site.xml +71 -0
- data/modules/hadoop2/ports +14 -0
- data/modules/hadoop2/yarn-env.sh +112 -0
- data/modules/hadoop2/yarn-site.xml +107 -0
- data/modules/hpcloud/.gitignore +2 -0
- data/modules/hpcloud/README.md +16 -0
- data/modules/hpcloud/config.yml +3 -0
- data/modules/hpcloud/example.sfp +18 -0
- data/modules/hpcloud/hpcloud.rb +241 -0
- data/modules/hpcloud/hpcloud.sfp +22 -0
- data/modules/hpcloud/test.sfp +5 -0
- data/modules/install_module +65 -0
- data/modules/machine/machine.rb +95 -0
- data/modules/machine/machine.sfp +9 -0
- data/modules/mockcloud/mockcloud.rb +20 -0
- data/modules/mockcloud/mockcloud.sfp +6 -0
- data/modules/mysql/mysql.rb +118 -0
- data/modules/mysql/mysql.sfp +38 -0
- data/modules/mysql/test.sfp +3 -0
- data/modules/node/node.rb +8 -0
- data/modules/node/node.sfp +7 -0
- data/modules/object/object.rb +7 -0
- data/modules/object/object.sfp +1 -0
- data/modules/os/os.rb +38 -0
- data/modules/os/os.sfp +11 -0
- data/modules/package/package.rb +26 -0
- data/modules/package/package.sfp +22 -0
- data/modules/package/test.sfp +6 -0
- data/modules/service/model.json +1 -0
- data/modules/service/service.rb +50 -0
- data/modules/service/service.sfp +46 -0
- data/modules/service/test.sfp +6 -0
- data/modules/tarpackage/tarpackage.rb +93 -0
- data/modules/tarpackage/tarpackage.sfp +5 -0
- data/modules/vm/vm.rb +8 -0
- data/modules/vm/vm.sfp +18 -0
- data/modules/wordpress/wordpress.rb +98 -0
- data/modules/wordpress/wordpress.sfp +34 -0
- data/modules/wordpresscluster/wordpresscluster.rb +150 -0
- data/modules/wordpresscluster/wordpresscluster.sfp +74 -0
- data/nuri.gemspec +26 -0
- 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,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>
|