You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2020/03/24 16:35:48 UTC

[hbase] branch branch-2.3 updated: HBASE-24002 shadedjars check does not propagate --hadoop-profile

This is an automated email from the ASF dual-hosted git repository.

ndimiduk pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new 050383e  HBASE-24002 shadedjars check does not propagate --hadoop-profile
050383e is described below

commit 050383e96d09e6430ef6b0873a7345d23fe5e7a8
Author: Nick Dimiduk <nd...@apache.org>
AuthorDate: Tue Mar 17 12:32:48 2020 -0700

    HBASE-24002 shadedjars check does not propagate --hadoop-profile
    
    This implementation is almost surely incorrect. Personality
    initialization parses the `--hadoop-profile` argument and sets
    `HADOOP_PROFILE`. That value is then used to build an `extras` value
    that is passed  along to module initialization. I'm guessing that the
    `extras` value need to be honored down in the shadedjars module. I'm
    not clear on how to make that work (need to study the interfaces at
    play here), so taking the more ham-handed approach of referring to
    `HADOOP_PROFILE`. I'm not sure if this will even work, or if it will
    only work because the `foo_yetus.sh` scripts happen to use a variable
    of the same name.
    
    Signed-off-by: Jan Hentschel <ja...@ultratendency.com>
    Signed-off-by: stack <st...@apache.org>
---
 dev-support/hbase-personality.sh | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 0388515..72f0b05 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -463,13 +463,17 @@ function shadedjars_rebuild
 
   start_clock
 
+  local -a maven_args=('clean' 'verify' '-fae' '--batch-mode'
+    '-pl' 'hbase-shaded/hbase-shaded-check-invariants' '-am'
+    '-Dtest=NoUnitTests' '-DHBasePatchProcess' '-Prelease'
+    '-Dmaven.javadoc.skip=true' '-Dcheckstyle.skip=true' '-Dspotbugs.skip=true')
+  if [[ -n "${HADOOP_PROFILE}" ]]; then
+    maven_args+=("-Dhadoop.profile=${HADOOP_PROFILE}")
+  fi
+
   # disabled because "maven_executor" needs to return both command and args
   # shellcheck disable=2046
-  echo_and_redirect "${logfile}" \
-    $(maven_executor) clean verify -fae --batch-mode \
-      -pl hbase-shaded/hbase-shaded-check-invariants -am \
-      -Dtest=NoUnitTests -DHBasePatchProcess -Prelease \
-      -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true
+  echo_and_redirect "${logfile}" $(maven_executor) "${maven_args[@]}"
 
   count=$(${GREP} -c '\[ERROR\]' "${logfile}")
   if [[ ${count} -gt 0 ]]; then