hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject hbase git commit: HBASE-16733 add hadoop 3.0.0-alpha1 to precommit checks
Date Tue, 18 Oct 2016 08:30:58 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 10840a51e -> 1b005f30e


HBASE-16733 add hadoop 3.0.0-alpha1 to precommit checks


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1b005f30
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1b005f30
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1b005f30

Branch: refs/heads/master
Commit: 1b005f30e45c279bb74c8994cdd5628fa6d2fdf2
Parents: 10840a5
Author: Jonathan M Hsieh <jmhsieh@apache.org>
Authored: Thu Sep 29 14:56:01 2016 -0700
Committer: Jonathan M Hsieh <jmhsieh@apache.org>
Committed: Tue Oct 18 01:30:03 2016 -0700

----------------------------------------------------------------------
 dev-support/hbase-personality.sh | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/1b005f30/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index af397f0..469359c 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -53,7 +53,8 @@ function personality_globals
 
   # TODO use PATCH_BRANCH to select hadoop versions to use.
   # All supported Hadoop versions that we want to test the compilation with
-  HBASE_HADOOP_VERSIONS="2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.6.1 2.6.2 2.6.3 2.7.1"
+  HBASE_HADOOP2_VERSIONS="2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.6.1 2.6.2 2.6.3 2.7.1"
+  HBASE_HADOOP3_VERSIONS="3.0.0-alpha1"
 
   # TODO use PATCH_BRANCH to select jdk versions to use.
 
@@ -188,7 +189,7 @@ function hadoopcheck_rebuild
   big_console_header "Compiling against various Hadoop versions"
 
   export MAVEN_OPTS="${MAVEN_OPTS}"
-  for hadoopver in ${HBASE_HADOOP_VERSIONS}; do
+  for hadoopver in ${HBASE_HADOOP2_VERSIONS}; do
     logfile="${PATCH_DIR}/patch-javac-${hadoopver}.txt"
     echo_and_redirect "${logfile}" \
       "${MAVEN}" clean install \
@@ -201,11 +202,25 @@ function hadoopcheck_rebuild
     fi
   done
 
+  for hadoopver in ${HBASE_HADOOP3_VERSIONS}; do
+    logfile="${PATCH_DIR}/patch-javac-${hadoopver}.txt"
+    echo_and_redirect "${logfile}" \
+      "${MAVEN}" clean install \
+        -DskipTests -DHBasePatchProcess \
+        -Dhadoop-three.version="${hadoopver} \
+        -Dhadoop.profile=3.0"
+    count=$(${GREP} -c ERROR "${logfile}")
+    if [[ ${count} -gt 0 ]]; then
+      add_vote_table -1 hadoopcheck "${BUILDMODEMSG} causes ${count} errors with Hadoop v${hadoopver}."
+      ((result=result+1))
+    fi
+  done
+
   if [[ ${result} -gt 0 ]]; then
     return 1
   fi
 
-  add_vote_table +1 hadoopcheck "Patch does not cause any errors with Hadoop ${HBASE_HADOOP_VERSIONS}."
+  add_vote_table +1 hadoopcheck "Patch does not cause any errors with Hadoop ${HBASE_HADOOP2_VERSIONS}
or ${HBASE_HADOOP3_VERSIONS}."
   return 0
 }
 


Mime
View raw message