carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jack...@apache.org
Subject [carbondata] branch master updated: [HOTFIX] Remove hive-service from carbondata assembly jar
Date Wed, 04 Sep 2019 14:58:16 GMT
This is an automated email from the ASF dual-hosted git repository.

jackylk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/carbondata.git


The following commit(s) were added to refs/heads/master by this push:
     new 20e4149  [HOTFIX] Remove hive-service from carbondata assembly jar
20e4149 is described below

commit 20e4149fd0d2f385a367a423b0ada771b6559e92
Author: Zhang Zhichao <441586683@qq.com>
AuthorDate: Wed Sep 4 14:36:06 2019 +0800

    [HOTFIX] Remove hive-service from carbondata assembly jar
    
    Problem: In some environments, there will occur 'No Such Method: registerCurrentOperationLog'
exception while execute sql on carbon thrift server.
    
    Cause: spark hive thrift module rewrite class 'org.apache.hive.service.cli.operation.ExecuteStatementOperation'
and add method 'registerCurrentOperationLog' in it, but when start carbon thrift server, it
maybe load class 'ExecuteStatementOperation' first from carbondata assembly jar (includes
'org.apache.hive:hive-service'), this class 'ExecuteStatementOperation' which is from hive-service
jar doesn't have method 'registerCurrentOperationLog', so it throws NoSuchMethodException.
    
    Solution: remove all artifacts of 'org.apache.hive' when assemble carbondata jar.
    
    This closes #3373
---
 assembly/pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/assembly/pom.xml b/assembly/pom.xml
index 9ac2e78..d6a3ce6 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -107,6 +107,7 @@
               <exclude>org.apache.spark:*</exclude>
               <exclude>org.apache.zookeeper:*</exclude>
               <exclude>org.apache.avro:*</exclude>
+              <exclude>org.apache.hive:*</exclude>
               <exclude>com.google.guava:guava</exclude>
               <exclude>org.xerial.snappy:snappy-java</exclude>
               <!--add more items to be excluded from the assembly-->


Mime
View raw message