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 2021/09/06 08:23:00 UTC

[jira] [Issue Comment Deleted] (KYLIN-5084) Kylin4.0.0 is incompatible with HDP-3.1.5`s Hive-3.1.0

     [ https://issues.apache.org/jira/browse/KYLIN-5084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiaoxiang Yu updated KYLIN-5084:
--------------------------------
    Comment: was deleted

(was: Hi [~lixz] . 

Please try to configure proper kylin.engine.spark-conf.spark.sql.hive.metastore.version, kylin.engine.spark-conf.spark.sql.hive.metastore.jars, kylin.engine.spark-conf.spark.sql.hive.metastore.version, kylin.query.spark-conf.spark.sql.hive.metastore.jars; please check [http://spark.apache.org/docs/latest/configuration.html] or [http://spark.apache.org/docs/latest/sql-data-sources-hive-tables.html] for detail (spark connect to hive).

 

Or check this [https://cwiki.apache.org/confluence/display/KYLIN/Support+Hadoop+Version+Matrix+of+Kylin+4] .)

> Kylin4.0.0 is incompatible with HDP-3.1.5`s Hive-3.1.0
> ------------------------------------------------------
>
>                 Key: KYLIN-5084
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5084
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Metadata
>    Affects Versions: v4.0.0
>         Environment: HDP-3.1.5+Hadoop-3.1.1+Spark-2.3.0+Hive-3.1.0
>            Reporter: lixinzhao
>            Priority: Major
>         Attachments: 捕获.JPG
>
>
> The following error message is displayed during Hive`s table synchronization:
> {code:java}
> org.apache.kylin.rest.exception.InternalErrorException: org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(Lorg/apache/hadoop/hive/conf/HiveConf;)V
> at org.apache.kylin.rest.controller.TableController.showHiveDatabases(TableController.java:201) ~[kylin-server-base-4.0.0.jar:4.0.0] 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291]
>  ...............
> Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(Lorg/apache/hadoop/hive/conf/HiveConf;)V 
> at org.apache.kylin.source.hive.HiveMetaStoreClientFactory.getHiveMetaStoreClient(HiveMetaStoreClientFactory.java:47) ~[kylin-source-hive-4.0.0.jar:4.0.0] 
> at org.apache.kylin.source.hive.CLIHiveClient.getMetaStoreClient(CLIHiveClient.java:164) ~[kylin-source-hive-4.0.0.jar:4.0.0] 
> at org.apache.kylin.source.hive.CLIHiveClient.getHiveDbNames(CLIHiveClient.java:118) ~[kylin-source-hive-4.0.0.jar:4.0.0]
> {code}
> I found the method named getHiveMetaStoreClient of org.apache.kylin.source.hive.HiveMetaStoreClientFactory is unbefitting,because the HiveMetaStoreClient`s init methos of hive3.1.2 no longer accepts parameters of type HiveConf but Configuration.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)