You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2019/06/18 13:56:28 UTC

[kylin] 02/04: KYLIN-3537

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

nic pushed a commit to branch master-hadoop3.1
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 85b6c7c4d81dd87872a63865ab0b3a82197acc0a
Author: alexandr.sidorchuk <al...@apm-consult.com>
AuthorDate: Thu Feb 21 15:26:55 2019 +0300

    KYLIN-3537
    
    Use Spark to build Cube on Yarn faild at Setp8 on HDP3.0
    add HBase dependicies to avoid java.lang.NoClassDefFoundError
    
    Signed-off-by: shaofengshi <sh...@apache.org>
---
 .../apache/kylin/storage/hbase/steps/HBaseSparkSteps.java  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/HBaseSparkSteps.java b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/HBaseSparkSteps.java
index d636e7d..91a1206 100644
--- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/HBaseSparkSteps.java
+++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/HBaseSparkSteps.java
@@ -73,6 +73,20 @@ public class HBaseSparkSteps extends HBaseJobSteps {
         StringUtil.appendWithSeparator(jars,
                 ClassUtil.findContainingJar("org.apache.hadoop.hbase.regionserver.MetricsRegionServerSourceFactoryImpl", null));//hbase-hadoop2-compat-1.1.1.jar
 
+        //KYLIN-3537
+        StringUtil.appendWithSeparator(jars,
+                ClassUtil.findContainingJar("org.apache.hadoop.hbase.io.hfile.HFileWriterImpl", null));//hbase-server.jar
+        StringUtil.appendWithSeparator(jars,
+                ClassUtil.findContainingJar("org.apache.hbase.thirdparty.com.google.common.cache.CacheLoader", null));//hbase-shaded-miscellaneous.jar
+        StringUtil.appendWithSeparator(jars,
+                ClassUtil.findContainingJar("org.apache.hadoop.hbase.metrics.MetricRegistry", null));//hbase-metrics-api.jar
+        StringUtil.appendWithSeparator(jars,
+                ClassUtil.findContainingJar("org.apache.hadoop.hbase.metrics.impl.MetricRegistriesImpl", null));//hbase-metrics.jar
+        StringUtil.appendWithSeparator(jars,
+                ClassUtil.findContainingJar("org.apache.hbase.thirdparty.com.google.protobuf.Message", null));//hbase-shaded-protobuf.jar
+        StringUtil.appendWithSeparator(jars,
+                ClassUtil.findContainingJar("org.apache.hadoop.hbase.shaded.protobuf.generated.HFileProtos", null));//hbase-protocol-shaded.jar
+
         StringUtil.appendWithSeparator(jars, seg.getConfig().getSparkAdditionalJars());
         sparkExecutable.setJars(jars.toString());