Browse Source

Add building hadoop swiftfs jars

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
tags/5.0.0.0b1^0
Michael Ionkin 3 years ago
parent
commit
f7bb0b1f20
2 changed files with 11 additions and 8 deletions
  1. 5
    2
      tools/build-all-artifacts.sh
  2. 6
    6
      tools/build-hadoop-openstack.sh

+ 5
- 2
tools/build-all-artifacts.sh View File

@@ -8,5 +8,8 @@ echo "Building all needed oozie versions"
8 8
 ./tools/build-oozie.sh 2.6.0
9 9
 
10 10
 echo "Building all needed hadoop-openstack versions"
11
-./tools/build-hadoop-openstack.sh 1.2.1
12
-./tools/build-hadoop-openstack.sh 2.6.0
11
+hadoop_versions=(2.2.0 2.3.0 2.5.0 2.6.0 2.7.1)
12
+for ver in ${hadoop_versions[*]}
13
+do
14
+    ./tools/build-hadoop-openstack.sh ${ver}
15
+done

+ 6
- 6
tools/build-hadoop-openstack.sh View File

@@ -4,7 +4,7 @@ set -eux
4 4
 set -o pipefail
5 5
 
6 6
 function usage {
7
-    echo "Usage: $(basename $0) <plugin-version>"
7
+    echo "Usage: $(basename $0) <hadoop-version>"
8 8
 }
9 9
 
10 10
 if [[ $# -ne 1 ]]; then
@@ -12,9 +12,9 @@ if [[ $# -ne 1 ]]; then
12 12
     exit 1
13 13
 fi
14 14
 
15
-PLUGIN_VERSION=${1}
16
-case "${PLUGIN_VERSION}" in
17
-    "2.6.0")
15
+HADOOP_VERSION=${1}
16
+case "${HADOOP_VERSION}" in
17
+    "2.2.0" | "2.3.0" | "2.5.0" | "2.6.0" | "2.7.1")
18 18
         EXTRA_ARGS="-P hadoop2"
19 19
     ;;
20 20
 esac
@@ -25,7 +25,7 @@ mvn --version
25 25
 
26 26
 echo "Build hadoop-openstack library"
27 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 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 31
 popd

Loading…
Cancel
Save