diff options
author | Michael Ionkin <mionkin@mirantis.com> | 2016-03-17 19:57:32 +0300 |
---|---|---|
committer | Michael Ionkin <mionkin@mirantis.com> | 2016-03-17 19:57:32 +0300 |
commit | f7bb0b1f20a24ba85211e536ec4b202cc26d2e9a (patch) | |
tree | c86e8307b8614396e26acf72e080743a419c5582 | |
parent | a1e4d4ebbe324a12551474195cd6bfb21fc321ad (diff) |
Add building hadoop swiftfs jars5.0.0.0b1
Changed build-all-artifacts job for building hadoop openstack jars
with our swiftfs implementation (for each of 2.2.0, 2.3.0, 2.5.0,
2.6.0 and 2.7.1 hadoop versions).
Change-Id: Ib00ddcd2eb4ea3e3844d70ed7e2106fbbb171dd6
Partial-bug: 1558064
Notes
Notes (review):
Code-Review+1: lu huichun <huichun.lu@intel.com>
Code-Review+1: Trevor McKay <tmckay@redhat.com>
Code-Review+2: Vitaly Gridnev <vgridnev@mirantis.com>
Code-Review-1: Alexander Ignatov <aignatov@mirantis.com>
Workflow+1: Vitaly Gridnev <vgridnev@mirantis.com>
Verified+2: Jenkins
Submitted-by: Jenkins
Submitted-at: Wed, 01 Jun 2016 12:07:18 +0000
Reviewed-on: https://review.openstack.org/294177
Project: openstack/sahara-extra
Branch: refs/heads/master
-rwxr-xr-x | tools/build-all-artifacts.sh | 7 | ||||
-rwxr-xr-x | tools/build-hadoop-openstack.sh | 12 |
2 files changed, 11 insertions, 8 deletions
diff --git a/tools/build-all-artifacts.sh b/tools/build-all-artifacts.sh index 392adda..002766e 100755 --- a/tools/build-all-artifacts.sh +++ b/tools/build-all-artifacts.sh | |||
@@ -8,5 +8,8 @@ echo "Building all needed oozie versions" | |||
8 | ./tools/build-oozie.sh 2.6.0 | 8 | ./tools/build-oozie.sh 2.6.0 |
9 | 9 | ||
10 | echo "Building all needed hadoop-openstack versions" | 10 | echo "Building all needed hadoop-openstack versions" |
11 | ./tools/build-hadoop-openstack.sh 1.2.1 | 11 | hadoop_versions=(2.2.0 2.3.0 2.5.0 2.6.0 2.7.1) |
12 | ./tools/build-hadoop-openstack.sh 2.6.0 | 12 | for ver in ${hadoop_versions[*]} |
13 | do | ||
14 | ./tools/build-hadoop-openstack.sh ${ver} | ||
15 | done | ||
diff --git a/tools/build-hadoop-openstack.sh b/tools/build-hadoop-openstack.sh index 1c63a9c..0dc17dd 100755 --- a/tools/build-hadoop-openstack.sh +++ b/tools/build-hadoop-openstack.sh | |||
@@ -4,7 +4,7 @@ set -eux | |||
4 | set -o pipefail | 4 | set -o pipefail |
5 | 5 | ||
6 | function usage { | 6 | function usage { |
7 | echo "Usage: $(basename $0) <plugin-version>" | 7 | echo "Usage: $(basename $0) <hadoop-version>" |
8 | } | 8 | } |
9 | 9 | ||
10 | if [[ $# -ne 1 ]]; then | 10 | if [[ $# -ne 1 ]]; then |
@@ -12,9 +12,9 @@ if [[ $# -ne 1 ]]; then | |||
12 | exit 1 | 12 | exit 1 |
13 | fi | 13 | fi |
14 | 14 | ||
15 | PLUGIN_VERSION=${1} | 15 | HADOOP_VERSION=${1} |
16 | case "${PLUGIN_VERSION}" in | 16 | case "${HADOOP_VERSION}" in |
17 | "2.6.0") | 17 | "2.2.0" | "2.3.0" | "2.5.0" | "2.6.0" | "2.7.1") |
18 | EXTRA_ARGS="-P hadoop2" | 18 | EXTRA_ARGS="-P hadoop2" |
19 | ;; | 19 | ;; |
20 | esac | 20 | esac |
@@ -25,7 +25,7 @@ mvn --version | |||
25 | 25 | ||
26 | echo "Build hadoop-openstack library" | 26 | echo "Build hadoop-openstack library" |
27 | pushd hadoop-swiftfs | 27 | pushd hadoop-swiftfs |
28 | mvn clean package ${EXTRA_ARGS:-} -Dhadoop.version=${PLUGIN_VERSION} | 28 | mvn clean package ${EXTRA_ARGS:-} -Dhadoop.version=${HADOOP_VERSION} |
29 | mkdir -p ./../dist/hadoop-openstack/ | 29 | mkdir -p ./../dist/hadoop-openstack/ |
30 | mv target/hadoop-openstack-3.0.0-SNAPSHOT.jar ./../dist/hadoop-openstack/hadoop-openstack-${PLUGIN_VERSION}.jar | 30 | mv target/hadoop-openstack-3.0.0-SNAPSHOT.jar ./../dist/hadoop-openstack/hadoop-openstack-${HADOOP_VERSION}.jar |
31 | popd | 31 | popd |