[
https://issues.apache.org/jira/browse/KYLIN-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541830#comment-14541830
]
Shaofeng SHI edited comment on KYLIN-761 at 5/13/15 1:07 PM:
-------------------------------------------------------------
I setup a CHD 5.4 sandbox, and reproduced the problem; I noticed that the
calcite version in /usr/lib/hive/lib is v1.0; while Kylin shipped v0.9 calcite,
this will cause conflict; The problem was Kylin adds all hive/lib/* to
classpath when starts up, this is not good; (In HDP 2.2, it ships v0.9 which is
the same as Kylin, so didn't cause issue)
I updated the find-hive-dependency.sh to exclude the calcite in hive/lib
folder, I tested it works now in my CDH, the cube build and query all works;
Please download the new find-hive-dependency.sh (from the "attachement" section
of this page), replace the file in $KYLIN_HOME/bin/ folder, and then restart
Kylin server to take effective; Will commit the change to github a little bit
later;
was (Author: shaofengshi):
I setup a CHD 5.4 sandbox, and reproduced the problem; I noticed that the
calcite version in /usr/lib/hive/lib is v1.0; while Kylin shipped v0.9 calcite,
this will cause conflict; The problem was Kylin adds all hive/lib/* to
classpath when starts up, this is not good; (In HDP 2.2, it ships v0.9 which is
the same as Kylin, so didn't cause issue)
I updated the find-hive-dependency.sh to exclude the calcite in hive/lib
folder, I tested it works now in my CDH, the cube build and query all works;
Please download the new version to replace it in $KYLIN_HOME/bin/ folder, and
then restart Kylin server to take effective; It will be committed a little bit
later;
> Tables are not shown in the "Query" tab, and couldn't run SQL query after
> cube be built
> ---------------------------------------------------------------------------------------
>
> Key: KYLIN-761
> URL: https://issues.apache.org/jira/browse/KYLIN-761
> Project: Kylin
> Issue Type: Bug
> Components: General
> Affects Versions: v0.7.1
> Environment: CDH 5.4
> Reporter: Shaofeng SHI
> Assignee: Shaofeng SHI
> Attachments: find-hive-dependency.sh
>
>
> User from mailing-list reports their Kylin doesn't show up the table/columns
> in "Query" tab after cube be built; In kylin.log, there are exceptions:
> “Error instantiating
> JsonCustomSchema(name=DEFAULT)”
> Caused by: java.lang.ClassNotFoundException:
> org.apache.kylin.query.schema.OLAPSchemaFactory
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:191)
> at org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:209)
> ... 103 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)