falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From venkat...@apache.org
Subject [1/2] git commit: FALCON-425 src/bin/package.sh is broken for hadoop 2.* versions. Contributed by Sowmya Ramesh
Date Fri, 02 May 2014 20:55:04 GMT
Repository: incubator-falcon
Updated Branches:
  refs/heads/master f25e6c916 -> 49c0df4bc


FALCON-425 src/bin/package.sh is broken for hadoop 2.* versions. Contributed by Sowmya Ramesh


Project: http://git-wip-us.apache.org/repos/asf/incubator-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-falcon/commit/dc0958c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-falcon/tree/dc0958c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-falcon/diff/dc0958c2

Branch: refs/heads/master
Commit: dc0958c28799d87a3806ba0da16aaec9d1406808
Parents: f25e6c9
Author: Venkatesh Seetharam <venkatesh@apache.org>
Authored: Fri May 2 13:51:20 2014 -0700
Committer: Venkatesh Seetharam <venkatesh@apache.org>
Committed: Fri May 2 13:51:20 2014 -0700

----------------------------------------------------------------------
 CHANGES.txt        | 3 +++
 src/bin/package.sh | 6 ++++--
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/dc0958c2/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index dbb7455..4bccd1f 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -28,6 +28,9 @@ Trunk (Unreleased)
     Venkatesh Seetharam)
    
   IMPROVEMENTS
+    FALCON-425 src/bin/package.sh is broken for hadoop 2.* versions
+    (Sowmya Ramesh via Venkatesh Seetharam)
+
     FALCON-421 Upgrade Hadoop to 2.4.0 (Sowmya Ramesh via Venkatesh Seetharam)
 
     FALCON-386 Upgrade to oozie 4.0.1. (Sowmya Ramesh via Venkatesh Seetharam)

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/dc0958c2/src/bin/package.sh
----------------------------------------------------------------------
diff --git a/src/bin/package.sh b/src/bin/package.sh
index 3a8ebee..9aff1c7 100755
--- a/src/bin/package.sh
+++ b/src/bin/package.sh
@@ -46,9 +46,11 @@ FALCON_SRC=${BASEDIR}/../..
 HADOOP_VERSION=$1
 OOZIE_VERSION=$2
 
+HADOOP_PROFILE="hadoop-""$(echo ${HADOOP_VERSION} | cut -d'.' -f 1)"
+
 pushd ${FALCON_SRC}
 echo "Builing oozie-el-extension and oozie"
-mvn clean install -pl build-tools,hadoop-dependencies,oozie-el-extensions -am -Dhadoop.version=$HADOOP_VERSION
-Doozie.version=$OOZIE_VERSION -Doozie.forcebuild=true -DskipTests
+mvn clean install -P $HADOOP_PROFILE -pl build-tools,hadoop-dependencies,oozie-el-extensions
-am -Dhadoop.version=$HADOOP_VERSION -Doozie.version=$OOZIE_VERSION -Doozie.forcebuild=true
-DskipTests
 pushd target/oozie-$OOZIE_VERSION
 bin/mkdistro.sh -DskipTests
 pushd distro/target/oozie-*
@@ -61,7 +63,7 @@ tar -zcvf ${FALCON_SRC}/target/oozie-$OOZIE_VERSION-distro.tar.gz oozie-*
 
 popd
 popd
-mvn assembly:assembly -Dhadoop.version=$HADOOP_VERSION -Doozie.version=$OOZIE_VERSION -Doozie.forcebuild=true
-DskipTests -DskipCheck=true
+mvn assembly:assembly -P $HADOOP_PROFILE -Dhadoop.version=$HADOOP_VERSION -Doozie.version=$OOZIE_VERSION
-Doozie.forcebuild=true -DskipTests -DskipCheck=true
 
 echo "Falcon pacakge is available in ${FALCON_SRC}/target/falcon-<<version>>-bin.tar.gz"
 echo "Oozie pacakge is available in ${FALCON_SRC}/target/oozie-$OOZIE_VERSION-distro.tar.gz"


Mime
View raw message