From e521a9d6a30b32e9af348ba3f8be01bf97c0b5b5 Mon Sep 17 00:00:00 2001 From: Apekshit Sharma Date: Mon, 11 Dec 2017 18:30:14 -0800 Subject: [PATCH] HBASE-19489 Adds QUICK_HADOOPCHECK flag to check against only the latest maintenance releases in "hadoopcheck". --- dev-support/hbase-personality.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 11f8731371..8e1feb1c66 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -260,17 +260,22 @@ function hadoopcheck_rebuild # All supported Hadoop versions that we want to test the compilation with # See the Hadoop section on prereqs in the HBase Reference Guide + hbase_common_hadoop2_versions="2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7.1 2.7.2 2.7.3 2.7.4" if [[ "${PATCH_BRANCH}" = branch-1* ]]; then - yetus_info "setting Hadoop versions to test based on branch-1-ish rules." - 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.6.4 2.6.5 2.7.1 2.7.2 2.7.3 2.7.4" + yetus_info "Setting Hadoop versions to test based on branch-1-ish rules." + if [[ "${QUICK_HADOOPCHECK}" == "true" ]]; then + hbase_hadoop2_versions="2.4.1 2.5.2 2.6.5 2.7.4" + else + hbase_hadoop2_versions="2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 ${hbase_common_hadoop2_versions}" + fi hbase_hadoop3_versions="" - elif [[ ${PATCH_BRANCH} = branch-2* ]]; then - yetus_info "setting Hadoop versions to test based on branch-2-ish rules." - hbase_hadoop2_versions="2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7.1 2.7.2 2.7.3 2.7.4" - hbase_hadoop3_versions="3.0.0-alpha4" else # master or a feature branch - yetus_info "setting Hadoop versions to test based on master/feature branch rules." - hbase_hadoop2_versions="2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7.1 2.7.2 2.7.3 2.7.4" + yetus_info "Setting Hadoop versions to test based on branch-2/master/feature branch rules." + if [[ "${QUICK_HADOOPCHECK}" == "true" ]]; then + hbase_hadoop2_versions="2.6.5 2.7.4" + else + hbase_hadoop2_versions="${hbase_common_hadoop2_versions}" + fi hbase_hadoop3_versions="3.0.0-alpha4" fi -- 2.14.1