Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
slapos
Commits
b9f5d141
Commit
b9f5d141
authored
Feb 19, 2014
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hadoop: deploy tar in instance, not SR
parent
207570a3
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
32 deletions
+44
-32
software/hadoop/deploy-config.sh.in
software/hadoop/deploy-config.sh.in
+0
-8
software/hadoop/instance.cfg.in
software/hadoop/instance.cfg.in
+39
-23
software/hadoop/software.cfg
software/hadoop/software.cfg
+5
-1
software/hadoop/template/bin/gutenberg-mapper.py.in
software/hadoop/template/bin/gutenberg-mapper.py.in
+0
-0
software/hadoop/template/bin/gutenberg-reducer.py.in
software/hadoop/template/bin/gutenberg-reducer.py.in
+0
-0
software/hadoop/template/bin/put-files.sh.in
software/hadoop/template/bin/put-files.sh.in
+0
-0
software/hadoop/template/bin/run-demo.sh.in
software/hadoop/template/bin/run-demo.sh.in
+0
-0
No files found.
software/hadoop/deploy-config.sh.in
deleted
100644 → 0
View file @
207570a3
#!/bin/bash
# exit on error
set
-e
source
environment.sh
echo cp
-a
$HADOOP_PREFIX
/etc
${
buildout
:directory
}
/
software/hadoop/instance.cfg.in
View file @
b9f5d141
[buildout]
parts =
deploy-config
sh-environment
put-files
mapper
reducer
run-demo
start-daemons
deploy-tar
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
...
...
@@ -18,29 +19,37 @@ recipe = collective.recipe.template
output = $${buildout:directory}/environment.sh
input = inline:
export JAVA_HOME="${java:location}"
export HADOOP_PREFIX="$
{hadoop:location
}"
export PATH=
$PATH:$HADOOP_PREFIX/bin
export HADOOP_HOME="$
{hadoop:location}
"
export HADOOP_COMMON_HOME="$
{hadoop:location}
"
export HADOOP_CONF_DIR="$
${buildout:directory}/etc/hadoop
"
export HADOOP_HDFS_HOME="$
{hadoop:location}
"
export HADOOP_MAPRED_HOME="$
{hadoop:location}
"
export HADOOP_YARN_HOME="$
{hadoop:location}
"
export HADOOP_PREFIX="$
${directories:hadoop-prefix
}"
export PATH=
"$PATH:$HADOOP_PREFIX/bin"
export HADOOP_HOME="$
HADOOP_PREFIX
"
export HADOOP_COMMON_HOME="$
HADOOP_PREFIX
"
export HADOOP_CONF_DIR="$
HADOOP_PREFIX/etc/
"
export HADOOP_HDFS_HOME="$
HADOOP_PREFIX
"
export HADOOP_MAPRED_HOME="$
HADOOP_PREFIX
"
export HADOOP_YARN_HOME="$
HADOOP_PREFIX
"
[deploy-tar]
recipe = plone.recipe.command
update = true
command =
[ -d $${directories:hadoop-prefix}/bin} ] || tar xf ${hadoop:location}/${hadoop:filename} -C $${directories:hadoop-prefix} --strip-components=1
[deploy-config]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/deploy-config.sh.in
output = $${buildout:directory}/deploy-config.sh
# md5sum =
mode = 0755
[directories]
recipe = slapos.cookbook:mkdirectory
bin = $${buildout:directory}/bin
etc = $${buildout:directory}/etc
hadoop-prefix = $${buildout:directory}/hadoop
services = $${directories:etc}/service
promises = $${directories:etc}/promise
[put-files]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/put-files.sh.in
output = $${
buildout:directory
}/put-files.sh
url = ${:_profile_base_location_}/
template/bin/
put-files.sh.in
output = $${
directories:bin
}/put-files.sh
# md5sum =
mode = 0755
...
...
@@ -49,23 +58,30 @@ mode = 0755
[mapper]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/gutenberg-mapper.py.in
output = $${
buildout:directory
}/gutenberg-mapper.py
url = ${:_profile_base_location_}/
template/bin/
gutenberg-mapper.py.in
output = $${
directories:bin
}/gutenberg-mapper.py
# md5sum =
mode = 0755
[reducer]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/gutenberg-reducer.py.in
output = $${
buildout:directory
}/gutenberg-reducer.py
url = ${:_profile_base_location_}/
template/bin/
gutenberg-reducer.py.in
output = $${
directories:bin
}/gutenberg-reducer.py
# md5sum =
mode = 0755
[run-demo]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/run-demo.sh.in
output = $${buildout:directory}/run-demo.sh
url = ${:_profile_base_location_}/template/bin/run-demo.sh.in
output = $${directories:bin}/run-demo.sh
# md5sum =
mode = 0755
[start-daemons]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template/bin/start-daemons.sh.in
output = $${directories:bin}/start-daemons.sh
# md5sum =
mode = 0755
software/hadoop/software.cfg
View file @
b9f5d141
...
...
@@ -25,8 +25,11 @@ eggs =
[hadoop]
recipe = hexagonit.recipe.download
url = http://apache.mirrors.spacedump.net/hadoop/common/stable/hadoop-2.2.0.tar.gz
filename = hadoop-2.2.0.tar.gz
url = http://apache.mirrors.spacedump.net/hadoop/common/stable/${:filename}
md5sum = 25f27eb0b5617e47c032319c0bfd9962
download-only = true
mode = 0644
strip-top-level-dir = true
...
...
@@ -35,6 +38,7 @@ recipe = hexagonit.recipe.download
url = http://repo1.maven.org/maven2/org/apache/hadoop/hadoop-streaming/0.20.203.0/hadoop-streaming-0.20.203.0.jar
download-only = true
#md5sum =
mode = 0644
...
...
software/hadoop/gutenberg-mapper.py.in
→
software/hadoop/
template/bin/
gutenberg-mapper.py.in
View file @
b9f5d141
File moved
software/hadoop/gutenberg-reducer.py.in
→
software/hadoop/
template/bin/
gutenberg-reducer.py.in
View file @
b9f5d141
File moved
software/hadoop/put-files.sh.in
→
software/hadoop/
template/bin/
put-files.sh.in
View file @
b9f5d141
File moved
software/hadoop/run-demo.sh.in
→
software/hadoop/
template/bin/
run-demo.sh.in
View file @
b9f5d141
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment