title: Apache Atlas: Http 503 Service Unavailable Error when connecting from Java Client
body: <p>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 &quot;Http 503 Service Unavailable Error&quot; .</p>
  <p>Following is the log</p>
  <pre><code>Exception in thread &quot;main&quot; org.apache.atlas.AtlasServiceException: Metadata service API org.apache.atlas.AtlasClientV2$API_V2@2f62ea70 failed with status 503 (Service Unavailable) Response Body (&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=ISO-8859-1&quot;/&gt;
  &lt;title&gt;Error 503 Service Unavailable&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h2&gt;HTTP ERROR: 503&lt;/h2&gt;
  &lt;p&gt;Problem accessing /api/atlas/v2/types/typedefs/. Reason:
  &lt;pre&gt; Service Unavailable&lt;/pre&gt;&lt;/p&gt;
  &lt;hr /&gt;&lt;i&gt;&lt;small&gt;Powered by Jetty:// 8.1.19.v20160209&lt;/small&gt;&lt;/i&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  )
  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
  </code></pre>