问题1问题2 [TODO]问题3
持续更新
执行 hook-bin/import-hive.sh 时,出现如下错误:
1.ERROR [main] org.apache.atlas.hive.bridge.HivemetaStoreBridge - import failed org.apache.atlas.AtlasException: Failed to load application properties、Caused by: org.apache.commons.configuration.ConversionException: 'atlas.graph.index.search.solr.wait-searcher' doesn't map to a List object: true, a java.lang.Boolean。
搜索 hadoop 目录下的 commons-configuration-*.jar 文件,并删除,使用 atlas 目录下的对应版本替代
find / -name commons-configuration-1.10.jar
2.Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
将 /opt/atlas-2.1.0/server/webapp/atlas/WEB-INF/lib 下的 jackson-*.jar 文件复制到 /opt/hive-3.1.2/lib 目录下。
3.java.lang.NoSuchMethodError: org.apache.hadoop.hive.metastore.api.Database.getCatalogName()
atlas 版本是 2.1.0,原 hive 版本是 2.3.9,修改为 3.1.2,解决问题。
4.如果出现连接失败的问题,可能是版本兼容性原因。
问题2 [TODO]执行 quick_start.py 时,出现如下错误:
[root@zgg atlas-2.1.0]# quick_start.py
Enter username for atlas :- admin
Enter password for atlas :-
Creating sample types:
Exception in thread "main" org.apache.atlas.AtlasServiceException: metadata service API org.apache.atlas.AtlasClientV2$API_V2@11392934 failed with status 409 (Conflict) Response Body ({"errorCode":"ATLAS-409-00-001","errorMessage":"Given type Dimension already exists"})
at org.apache.atlas.AtlasbaseClient.callAPIWithResource(AtlasbaseClient.java:428)
at org.apache.atlas.AtlasbaseClient.callAPIWithResource(AtlasbaseClient.java:353)
at org.apache.atlas.AtlasbaseClient.callAPI(AtlasbaseClient.java:229)
at org.apache.atlas.AtlasClientV2.createAtlasTypeDefs(AtlasClientV2.java:244)
at org.apache.atlas.examples.QuickStartV2.createTypes(QuickStartV2.java:226)
at org.apache.atlas.examples.QuickStartV2.runQuickstart(QuickStartV2.java:176)
at org.apache.atlas.examples.QuickStartV2.main(QuickStartV2.java:160)
No sample data added to Apache Atlas Server.
问题3
使用 import-hbase.sh 导入 hbase metadata 时,出现Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/exc/InputCoercionException 异常。
出现这类异常,一是查看是否缺少对应的 jar 包,二是查看相关 jar 包的版本是否一致。
出现这个异常,是因为 jackson-core 和 jackson-databind jar 包要都选择 2.10.0 版本。



