<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Atlas Rest API V2 Error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182771#M67976</link>
    <description>&lt;P&gt;I am working with Atlas-1.0.0-alpha if that is important&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 23:26:06 GMT</pubDate>
    <dc:creator>mike_hastie</dc:creator>
    <dc:date>2018-04-27T23:26:06Z</dc:date>
    <item>
      <title>Atlas Rest API V2 Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182768#M67973</link>
      <description>&lt;P&gt;Hi I have installed atlas naively (not HDP). I tried to use the REST API but I notice that the V2 API does not work. I have the latest build from&lt;/P&gt;&lt;PRE&gt; &lt;A href="https://git-wip-us.apache.org/repos/asf/atlas.git" target="_blank"&gt;https://git-wip-us.apache.org/repos/asf/atlas.git&lt;/A&gt; atlas &lt;/PRE&gt;&lt;P&gt;Atlas is running locally. I have used the following configuration&lt;/P&gt;&lt;PRE&gt;mvn clean package -Pdist,berkeley-elasticsearch&lt;/PRE&gt;&lt;P&gt;I notice I keep getting the following warning in my application log:&lt;/P&gt;&lt;PRE&gt;2017-09-12 13:16:34,998 WARN  - [main-SendThread(localhost:9026):] ~ Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (ClientCnxn$SendThread:1102)
java.net.ConnectException: Connection refused
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
&lt;/PRE&gt;&lt;P&gt;When i hit the URL below I &lt;STRONG&gt;get the expected response.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;localhost:21000/api/atlas/types&lt;/PRE&gt;&lt;P&gt;But when I try&lt;/P&gt;&lt;PRE&gt;localhost:21000/api/atlas/v2/types&lt;/PRE&gt;&lt;P&gt;I get the following error in the log:&lt;/P&gt;&lt;PRE&gt;2017-09-12 13:16:35,000 ERROR - [pool-1-thread-7 - 32b40c72-e4ba-41cd-aded-62634756785a:] ~ Error handling a request: e454ceee5c6d9335 (ExceptionMapperUtil:32)
javax.ws.rs.WebApplicationException
	at com.sun.jersey.server.impl.uri.rules.TerminatingRule.accept(TerminatingRule.java:66)
	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
	at org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:76)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
	at org.apache.atlas.web.filters.AtlasAuthorizationFilter.doFilter(AtlasAuthorizationFilter.java:157)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.apache.atlas.web.filters.AtlasCSRFPreventionFilter$ServletFilterHttpInteraction.proceed(AtlasCSRFPreventionFilter.java:235)
	at org.apache.atlas.web.filters.AtlasCSRFPreventionFilter.handleHttpInteraction(AtlasCSRFPreventionFilter.java:177)
	at org.apache.atlas.web.filters.AtlasCSRFPreventionFilter.doFilter(AtlasCSRFPreventionFilter.java:190)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.apache.atlas.web.filters.AtlasAuthenticationFilter.doFilter(AtlasAuthenticationFilter.java:340)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.apache.atlas.web.filters.AtlasKnoxSSOAuthenticationFilter.doFilter(AtlasKnoxSSOAuthenticationFilter.java:132)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.apache.atlas.web.filters.StaleTransactionCleanupFilter.doFilter(StaleTransactionCleanupFilter.java:55)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:215)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:499)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
&lt;/PRE&gt;&lt;P&gt;The URL mentioned above is mentioned in &lt;/P&gt;&lt;PRE&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/atlas_types_api.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/atlas_types_api.html&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;The REST API Page for atlas has the following URL&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://atlas.apache.org/api/v2/types/typedefs" target="_blank"&gt;https://atlas.apache.org/api/v2/types/typedefs&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;when I try this URL i get the following message 404 message&lt;/P&gt;&lt;PRE&gt;Looking for something? We're sorry. The web address you're looking for is not a functioning page in Apache Atlas. Please try navigating from Apache Atlas Home&lt;/PRE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 20:47:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182768#M67973</guid>
      <dc:creator>arsalan_siddiqi</dc:creator>
      <dc:date>2017-09-13T20:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas Rest API V2 Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182769#M67974</link>
      <description>&lt;P&gt;The following GET works to list all type definitions in atlas:&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://localhost:21000/api/atlas/v2/types/typedefs" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedefs&lt;/A&gt;
&lt;A href="http://localhost:21000/api/atlas/v2/types/typedefs/headers" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedefs/headers&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Please refer to the following v2 REST API doc for reference: &lt;A href="http://atlas.apache.org/api/v2/resource_TypesREST.html"&gt;http://atlas.apache.org/api/v2/resource_TypesREST.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 00:38:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182769#M67974</guid>
      <dc:creator>ssubramanian</dc:creator>
      <dc:date>2017-09-14T00:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas Rest API V2 Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182770#M67975</link>
      <description>&lt;P&gt;I am trying the recently posted GitHub examples from Venkat &lt;A href="https://github.com/venkatra/atlas-v2" target="_blank"&gt;https://github.com/venkatra/atlas-v2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My system is not empty and I suspect I am getting collisions but I get this message &lt;/P&gt;&lt;P&gt;There was an error processing your request. It has been logged (ID c3168fa1ecad582d)&lt;/P&gt;&lt;P&gt;When is scan the application.log with that ID I get the following message &lt;/P&gt;&lt;P&gt;2018-04-27 15:57:50,312 ERROR - [pool-1-thread-5 - 2f8110b3-0d18-4435-8ccd-3a8abff0eda0:] ~ Error handling a request: c3168fa1ecad582d (ExceptionMapperUtil:32)&lt;/P&gt;&lt;P&gt;com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `org.apache.atlas.model.typedef.AtlasTypesDef` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('classificationDefs')&lt;/P&gt;&lt;P&gt;... and a whole bunch of stack trace&lt;/P&gt;&lt;P&gt;What is the correct way to determine root cause ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 23:19:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182770#M67975</guid>
      <dc:creator>mike_hastie</dc:creator>
      <dc:date>2018-04-27T23:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas Rest API V2 Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182771#M67976</link>
      <description>&lt;P&gt;I am working with Atlas-1.0.0-alpha if that is important&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 23:26:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182771#M67976</guid>
      <dc:creator>mike_hastie</dc:creator>
      <dc:date>2018-04-27T23:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas Rest API V2 Error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182772#M67977</link>
      <description>&lt;P&gt;I found this problem was caused by missing all of the JSON so I had a missing { but still keen to understand the problem solving process.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 23:45:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-Rest-API-V2-Error/m-p/182772#M67977</guid>
      <dc:creator>mike_hastie</dc:creator>
      <dc:date>2018-04-27T23:45:05Z</dc:date>
    </item>
  </channel>
</rss>

