You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Xiaoxiang Yu (JIRA)" <ji...@apache.org> on 2019/07/15 02:28:00 UTC

[jira] [Comment Edited] (KYLIN-4072) CDH 6.x find-hbase-dependency.sh return with "base-common lib not found"

    [ https://issues.apache.org/jira/browse/KYLIN-4072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16884812#comment-16884812 ] 

Xiaoxiang Yu edited comment on KYLIN-4072 at 7/15/19 2:27 AM:
--------------------------------------------------------------

Use the following script to replace original one will solve problem in HDP3.0.

{code}
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh
source ${dir}/init-kerberos.sh

## init Kerberos if needed
initKerberosIfNeeded

echo Retrieving HBase dependency...

hbase_classpath=`hbase classpath` || quit "Command 'hbase classpath' does not work. Please check hbase is installed correctly."

# special handling for Amazon EMR, to prevent re-init of hbase-setenv
is_aws=`uname -r | grep amzn`
if [ -n "$is_aws" ] && [ -d "/usr/lib/oozie/lib" ]; then
 export HBASE_ENV_INIT="true"
fi

hbase_dependency=${hbase_classpath}
verbose "hbase_dependency is $hbase_dependency"
export hbase_dependency

{code}


was (Author: hit_lacus):
{code}
source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh
source ${dir}/init-kerberos.sh

## init Kerberos if needed
initKerberosIfNeeded

echo Retrieving HBase dependency...

hbase_classpath=`hbase classpath` || quit "Command 'hbase classpath' does not work. Please check hbase is installed correctly."

# special handling for Amazon EMR, to prevent re-init of hbase-setenv
is_aws=`uname -r | grep amzn`
if [ -n "$is_aws" ] && [ -d "/usr/lib/oozie/lib" ]; then
 export HBASE_ENV_INIT="true"
fi

hbase_dependency=${hbase_classpath}
verbose "hbase_dependency is $hbase_dependency"
export hbase_dependency

{code}

> CDH 6.x find-hbase-dependency.sh return with "base-common lib not found"
> ------------------------------------------------------------------------
>
>                 Key: KYLIN-4072
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4072
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: all
>            Reporter: Xiaoxiang Yu
>            Priority: Major
>         Attachments: image-2019-07-04-17-36-50-112.png, image-2019-07-04-17-38-40-660.png, image-2019-07-04-17-39-56-973.png
>
>
> In CDH 6.x, I find that execute "sh bin/find-hbase-dependency.sh" can not find hbase dependency as expected.
>  
> !image-2019-07-04-17-38-40-660.png!
> !image-2019-07-04-17-36-50-112.png!
>  
> And I compare the output of "hbase classpath" of different CDH version, I find the root cause should be the change of the "hbase classpath". That is to say, newer CDH didn't absolute path of all jars, only parent path.
> !image-2019-07-04-17-39-56-973.png!



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)