从Java客户端连接时,Apache Atlas:Http 503服务不可用错误

问题描述

我正在从MacOS运行atlas docker映像。管理仪表板工作正常,我可以从仪表板创建/管理实体。但是,当我尝试运行随Atlas源代码提供的示例Java应用程序时,出现“ Http 503 Service Unavailable Error”。

以下是日志

Exception in thread "main" org.apache.atlas.AtlasServiceException: Metadata service API org.apache.atlas.AtlasClientV2$API_V2@2f62ea70 Failed with status 503 (Service Unavailable) Response Body (<html>
<head>
<Meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 503 Service Unavailable</title>
</head>
<body>
<h2>HTTP ERROR: 503</h2>
<p>Problem accessing /api/atlas/v2/types/typedefs/. Reason:
<pre> Service Unavailable</pre></p>
<hr /><i><small>Powered by Jetty:// 8.1.19.v20160209</small></i>

</body>
</html>
)
at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:427)
at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:352)
at org.apache.atlas.AtlasBaseClient.callAPI(AtlasBaseClient.java:228)
at org.apache.atlas.AtlasClientV2.createAtlasTypeDefs(AtlasClientV2.java:323)
at org.apache.atlas.examples.sampleapp.TypeDefExample.batchCreateTypes(TypeDefExample.java:272)
at org.apache.atlas.examples.sampleapp.TypeDefExample.createTypeDeFinitions(TypeDefExample.java:92)
at org.apache.atlas.examples.sampleapp.SampleApp.main(SampleApp.java:56)
disconnected from the target VM,address: '127.0.0.1:58199',transport: 'socket'

Process finished with exit code 1

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)