【问题标题】:unable to import sample Data into Apache atlas无法将示例数据导入 Apache 地图集
【发布时间】:2025-12-20 21:00:14
【问题描述】:

我已经在以下 URL 的帮助下使用 docker 安装了 Apache atlas https://github.com/michalmiklas/atlas-docker

现在在使用以下命令将示例数据导入到 apache atlas 时,

bash-4.4# ./apache-atlas/bin/quick_start.py  http://localhost:21000/

它抛出以下错误

Exception in thread "main" org.apache.atlas.AtlasServiceException: Metadata service API org.apache.atlas.AtlasClientV2$API_V2@30f842ca failed with status 403 (Forbidden) Response Body ({"errorCode":"ATLAS-403-00-001","errorMessage":"bird is not authorized to perform create classification-def Dimension"})
        at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:395)
        at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:323)
        at org.apache.atlas.AtlasBaseClient.callAPI(AtlasBaseClient.java:211)
        at org.apache.atlas.AtlasClientV2.createAtlasTypeDefs(AtlasClientV2.java:227)
        at org.apache.atlas.examples.QuickStartV2.createTypes(QuickStartV2.java:185)
        at org.apache.atlas.examples.QuickStartV2.runQuickstart(QuickStartV2.java:141)
        at org.apache.atlas.examples.QuickStartV2.main(QuickStartV2.java:126)
No sample data added to Apache Atlas Server.

以下是总日志供您参考。

 ./bin/apache-atlas/bin/quick_start.py  http://localhost:21000/
log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.PatternLayout.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.PatternLayout.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.PatternLayout.
Enter username for atlas :- bird
Enter password for atlas :-

Creating sample types:
Exception in thread "main" org.apache.atlas.AtlasServiceException: Metadata service API org.apache.atlas.AtlasClientV2$API_V2@30f842ca failed with status 403 (Forbidden) Response Body ({"errorCode":"ATLAS-403-00-001","errorMessage":"bird is not authorized to perform create classification-def Dimension"})
        at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:395)
        at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:323)
        at org.apache.atlas.AtlasBaseClient.callAPI(AtlasBaseClient.java:211)
        at org.apache.atlas.AtlasClientV2.createAtlasTypeDefs(AtlasClientV2.java:227)
        at org.apache.atlas.examples.QuickStartV2.createTypes(QuickStartV2.java:185)
        at org.apache.atlas.examples.QuickStartV2.runQuickstart(QuickStartV2.java:141)
        at org.apache.atlas.examples.QuickStartV2.main(QuickStartV2.java:126)
No sample data added to Apache Atlas Server.

JFI,bird 是管理员用户组用户,我也尝试使用 DATA_STEWARDDATA_SCIENTIST 用户组,但结果相同。

【问题讨论】:

    标签: apache-atlas


    【解决方案1】:

    用户必须使用现有的用户名和密码将数据导入 APACHE-ATLAS。

    默认用户名:admin(区分大小写)

    密码:管理员

    安装 Apache Atlas 后,首先检查 Zookeeper 服务器状态,不要更改任何用户配置。

    感谢您的帮助

    【讨论】:

    • 我使用 admin 和 admin 作为凭据,但仍然面临同样的错误。有什么帮助吗?