You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Mihail Yonchev (Jira)" <ji...@apache.org> on 2020/08/19 13:00:02 UTC

[jira] [Commented] (ATLAS-3905) The method hivedb. Getcatalogname() does not exist in version 2.1

    [ https://issues.apache.org/jira/browse/ATLAS-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17180523#comment-17180523 ] 

Mihail Yonchev commented on ATLAS-3905:
---------------------------------------

Hello! This is likely due incompatibility of the Hive Version of your local environment and the Hive Version of the hive-metastore jars. Atlas 2.1.0 uses Hive 3.1.0, if your local environment is with earlier hive version ( e.g 1.1.0 ) they are incompatible due the fact that your local hive does not know about the getDatabaseName method. Simply adding different `hive-metastore-X.X.jar` would not help as the jar have other dependencies too and they need to be satisfied. The easiest thing would be to migrate to hive-version compatible with your environment, either upgrade hive locally or downgrading to atlas 1.X until you migrate to the next hive version.

>  The method hivedb. Getcatalogname() does not exist in version 2.1
> ------------------------------------------------------------------
>
>                 Key: ATLAS-3905
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3905
>             Project: Atlas
>          Issue Type: Bug
>          Components: hive-integration
>    Affects Versions: 2.1.0
>         Environment: hive 2.1.1
> atlas  2.1
>            Reporter: zhangxin
>            Priority: Blocker
>              Labels: hive
>
> run ` ./hook-bin/import-hive.sh `
> {code:java}
> Enter username for atlas :- adminEnter username for atlas :- adminEnter password for atlas :- Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.hive.metastore.api.Database.getCatalogName()Ljava/lang/String; at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.getDatabaseName(HiveMetaStoreBridge.java:577) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.toDbEntity(HiveMetaStoreBridge.java:557) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.toDbEntity(HiveMetaStoreBridge.java:549) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerDatabase(HiveMetaStoreBridge.java:416) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importDatabases(HiveMetaStoreBridge.java:295) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importHiveMetadata(HiveMetaStoreBridge.java:265) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:171)Failed to import Hive Meta Data!!!
> {code}
> i get the error,then add `hive-metastore-0.13.1.jar`  to `hook/hive/atlas-hive-plugin-impl/`  but not work.
> help me please,Thanks
>  
>  



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