summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ionkin <mionkin@mirantis.com>2016-03-17 19:57:32 +0300
committerMichael Ionkin <mionkin@mirantis.com>2016-03-17 19:57:32 +0300
commitf7bb0b1f20a24ba85211e536ec4b202cc26d2e9a (patch)
treec86e8307b8614396e26acf72e080743a419c5582
parenta1e4d4ebbe324a12551474195cd6bfb21fc321ad (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-xtools/build-all-artifacts.sh7
-rwxr-xr-xtools/build-hadoop-openstack.sh12
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
10echo "Building all needed hadoop-openstack versions" 10echo "Building all needed hadoop-openstack versions"
11./tools/build-hadoop-openstack.sh 1.2.1 11hadoop_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 12for ver in ${hadoop_versions[*]}
13do
14 ./tools/build-hadoop-openstack.sh ${ver}
15done
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
4set -o pipefail 4set -o pipefail
5 5
6function usage { 6function usage {
7 echo "Usage: $(basename $0) <plugin-version>" 7 echo "Usage: $(basename $0) <hadoop-version>"
8} 8}
9 9
10if [[ $# -ne 1 ]]; then 10if [[ $# -ne 1 ]]; then
@@ -12,9 +12,9 @@ if [[ $# -ne 1 ]]; then
12 exit 1 12 exit 1
13fi 13fi
14 14
15PLUGIN_VERSION=${1} 15HADOOP_VERSION=${1}
16case "${PLUGIN_VERSION}" in 16case "${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 ;;
20esac 20esac
@@ -25,7 +25,7 @@ mvn --version
25 25
26echo "Build hadoop-openstack library" 26echo "Build hadoop-openstack library"
27pushd hadoop-swiftfs 27pushd hadoop-swiftfs
28mvn clean package ${EXTRA_ARGS:-} -Dhadoop.version=${PLUGIN_VERSION} 28mvn clean package ${EXTRA_ARGS:-} -Dhadoop.version=${HADOOP_VERSION}
29mkdir -p ./../dist/hadoop-openstack/ 29mkdir -p ./../dist/hadoop-openstack/
30mv target/hadoop-openstack-3.0.0-SNAPSHOT.jar ./../dist/hadoop-openstack/hadoop-openstack-${PLUGIN_VERSION}.jar 30mv target/hadoop-openstack-3.0.0-SNAPSHOT.jar ./../dist/hadoop-openstack/hadoop-openstack-${HADOOP_VERSION}.jar
31popd 31popd