Updated Branches:
  refs/heads/RCs bb4f7170c -> 97390e070 (forced update)


BIGTOP-837. Oozie 3.3.0 can't be build against Hadoop 2.0.3 or later


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/97390e07
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/97390e07
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/97390e07

Branch: refs/heads/RCs
Commit: 97390e0707da400420d52322b55d9293cce620af
Parents: b5f900e
Author: Konstantin Boudnik <[email protected]>
Authored: Sat Feb 9 21:59:43 2013 -0800
Committer: Konstantin Boudnik <[email protected]>
Committed: Sat Feb 9 21:59:43 2013 -0800

----------------------------------------------------------------------
 .../src/common/oozie/do-component-build            |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/97390e07/bigtop-packages/src/common/oozie/do-component-build
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/oozie/do-component-build 
b/bigtop-packages/src/common/oozie/do-component-build
index 808d985..7e4a3ac 100755
--- a/bigtop-packages/src/common/oozie/do-component-build
+++ b/bigtop-packages/src/common/oozie/do-component-build
@@ -86,6 +86,13 @@ if [ "${DO_MAVEN_DEPLOY}" = "deploy" ]; then
   EXTRA_GOALS="${EXTRA_GOALS} source:jar deploy"
 fi
 
+## Update hardcoded version of the Hadoop base to the current HADOOP VERSION
+## This approach might need to be reconsidered once OOZIE-1201 is fixed
+sed -i.orig -e "s#2.0.2-alpha#${HADOOP_VERSION}#" 
${WORKDIR}/hadooplibs/hadoop-2/pom.xml
+sed -i.orig -e "s#2.0.2-alpha#${HADOOP_VERSION}#" 
${WORKDIR}/hadooplibs/hadoop-distcp-2/pom.xml
+sed -i.orig -e "s#2.0.2-alpha#${HADOOP_VERSION}#" 
${WORKDIR}/hadooplibs/hadoop-test-2/pom.xml
+sed -i.orig -e "s#2.0.2-alpha#${HADOOP_VERSION}#" ${WORKDIR}/pom.xml
+
 # Invoke Oozie build script
 ${WORKDIR}/bin/mkdistro.sh -DskipTests -Dhadoop.version=${HADOOP_VERSION} 
${EXTRA_GOALS} -Dmaven.repo.local=${HOME}/.m2/repository "$@"
 MKDISTRO_RESULT=$?

Reply via email to