[
https://issues.apache.org/jira/browse/KYLIN-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15734594#comment-15734594
]
Billy Liu commented on KYLIN-2261:
----------------------------------
In kylin.sh retrieveDependency method, you will find how the dependency works.
The dependency is defined as HBASE_CLASSPATH_PREFIX, it will be loaded by HBase.
In your shell, try run:
`export
HBASE_CLASSPATH_PREFIX=${KYLIN_HOME}/conf:${KYLIN_HOME}/lib/*:${KYLIN_HOME}/tool/*:${KYLIN_HOME}/ext/*:${HBASE_CLASSPATH_PREFIX}
hbase classpath`
My HDP sandbox will show
"/opt/apache-kylin-1.6.1-SNAPSHOT-bin/conf:/opt/apache-kylin-1.6.1-SNAPSHOT-bin/lib/*:/opt/apache-kylin-1.6.1-SNAPSHOT-bin/tool/*:/opt/apache-kylin-1.6.1-SNAPSHOT-bin/ext/*::/usr/hdp/2.2.4.2-2/hbase/conf...."
You will notice the kylin libraries in the classpath.
> Cleanup Hbase Storage issue
> ---------------------------
>
> Key: KYLIN-2261
> URL: https://issues.apache.org/jira/browse/KYLIN-2261
> Project: Kylin
> Issue Type: Test
> Components: Client - CLI
> Affects Versions: v1.6.0
> Environment: CDH-5.7.2
> Hbase1.2
> Kylin1.6
> Reporter: QiLiFei
> Priority: Critical
> Labels: test
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> When I try to run below command according doc
> (http://kylin.apache.org/docs16/howto/howto_cleanup_storage.html), it will
> always raise error "Error: Could not find or load main class
> org.apache.kylin.tool.StorageCleanupJob"
> Command :
> /opt/kylin/bin/kylin.sh org.apache.kylin.tool.StorageCleanupJob --delete
> false
>
> Is the class in the 'kylin-storage-hbase.jar ' ?
> And it should be put into $KYLIN_HOME/lib/ , Right ?
> I've put jar file in $KYLIN_HOME/lib & $HBase_Home/lib/ and set the 777
> authority . However it's still cannot working!!!!!!
> If I'm wrong , please correct me ! Thanks.
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)