hadoop-demo: updated and tested SR; moved to software/unstable
[slapos.git] / stack / hadoop / instance-stack.cfg.in
1 [buildout]
2
3 parts =
4   sh-environment
5   start-daemons
6   deploy-tar
7
8 eggs-directory = ${buildout:eggs-directory}
9 develop-eggs-directory = ${buildout:develop-eggs-directory}
10
11
12 [sh-environment]
13 # environment needed for running/debugging the applications, exported to a shell script to be sourced.
14 recipe = collective.recipe.template
15 output = $${buildout:directory}/environment.sh
16 input = inline:
17   export JAVA_HOME="${java:location}"
18   export HADOOP_PREFIX="$${directories:hadoop-prefix}"
19   export PATH="$PATH:$HADOOP_PREFIX/bin"
20   export HADOOP_HOME="$HADOOP_PREFIX"
21   export HADOOP_COMMON_HOME="$HADOOP_PREFIX"
22   export HADOOP_CONF_DIR="$HADOOP_PREFIX/etc/"
23   export HADOOP_HDFS_HOME="$HADOOP_PREFIX"
24   export HADOOP_MAPRED_HOME="$HADOOP_PREFIX"
25   export HADOOP_YARN_HOME="$HADOOP_PREFIX"
26
27
28 [deploy-tar]
29 recipe = plone.recipe.command
30 update = true
31 command =
32     [ -d $${directories:hadoop-prefix}/bin} ] || tar xf ${hadoop:location}/${hadoop:filename} -C $${directories:hadoop-prefix}  --strip-components=1
33
34
35 [directories]
36 recipe = slapos.cookbook:mkdirectory
37 bin = $${buildout:directory}/bin
38 etc = $${buildout:directory}/etc
39 var = $${buildout:directory}/var
40 hadoop-prefix = $${buildout:directory}/hadoop
41 services = $${directories:etc}/service
42 promises = $${directories:etc}/promise
43
44
45 [start-daemons]
46 recipe = slapos.recipe.template
47 url = ${:_profile_base_location_}/template/start-daemons.sh.in
48 output = $${directories:bin}/start-daemons.sh
49 md5sum = 35a51a7f826d29e47c564c57e954db80
50 mode = 0755
51