Support Questions
Find answers, ask questions, and share your expertise

Http 503 Service Unavailable Error when connecting from Java Client


Http 503 Service Unavailable Error when connecting from Java Client

New Contributor

I am running the atlas docker image from my MacOS . The admin dashboard works fine and I can create/ manage entities from the dashboard. But when I try to run the sample Java app provided with the Atlas source code, I get "Http 503 Service Unavailable Error" .


Following is the log


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>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 503 Service Unavailable</title>
<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>

at org.apache.atlas.AtlasBaseClient.callAPIWithResource(
at org.apache.atlas.AtlasBaseClient.callAPIWithResource(
at org.apache.atlas.AtlasBaseClient.callAPI(
at org.apache.atlas.AtlasClientV2.createAtlasTypeDefs(
at org.apache.atlas.examples.sampleapp.TypeDefExample.batchCreateTypes(
at org.apache.atlas.examples.sampleapp.TypeDefExample.createTypeDefinitions(
at org.apache.atlas.examples.sampleapp.SampleApp.main(
Disconnected from the target VM, address: '', transport: 'socket'

Process finished with exit code 1