<?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 API times out on entity creation in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120499#M43052</link>
    <description>&lt;P&gt;@meirs84 - can you please add details of the API call and the error received?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Nov 2018 08:26:20 GMT</pubDate>
    <dc:creator>mneethiraj</dc:creator>
    <dc:date>2018-11-07T08:26:20Z</dc:date>
    <item>
      <title>Atlas API times out on entity creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120495#M43048</link>
      <description>&lt;P&gt;I am testing atlas rest api on hdp 2.5.  I successfully create types and now trying to create entities.  I run the curl command and it hang then times out.  I have verify ATLAS_ENTITIES and ATLAS_HOOK topics exist in kafka.  here is error&lt;/P&gt;&lt;P&gt;{"error":"java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.","stackTrace":"org.apache.atlas.notification.NotificationException: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.\n\tat org.apache.atlas.kafka.KafkaNotification.sendInternalToProducer(KafkaNotification.java:249)\n\tat org.apache.atlas.kafka.KafkaNotification.sendInternal(KafkaNotification.java:222)\n\tat org.apache.atlas.notification.AbstractNotification.send(AbstractNotification.java:84)\n\tat org.apache.atlas.notification.NotificationEntityChangeListener.notifyOfEntityEvent(NotificationEntityChangeListener.java:159)\n\tat org.apache.atlas.notification.NotificationEntityChangeListener.onEntitiesAdded(NotificationEntityChangeListener.java:71)\n\tat org.apache.atlas.services.DefaultMetadataService.onEntitiesAdded(DefaultMetadataService.java:690)\n\tat org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:330)\n\tat org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:325)\n\tat org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:133)\n\tat sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\tat com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)\n\tat com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)\n\tat com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)\n\tat com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)\n\tat org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:71)\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)\n\tat com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)\n\tat com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)\n\tat com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)\n\tat com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)\n\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)\n\tat org.apache.atlas.web.filters.AtlasAuthorizationFilter.doFilter(AtlasAuthorizationFilter.java:154)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.atlas.web.filters.AtlasCSRFPreventionFilter$ServletFilterHttpInteraction.proceed(AtlasCSRFPreventionFilter.java:232)\n\tat org.apache.atlas.web.filters.AtlasCSRFPreventionFilter.handleHttpInteraction(AtlasCSRFPreventionFilter.java:177)\n\tat org.apache.atlas.web.filters.AtlasCSRFPreventionFilter.doFilter(AtlasCSRFPreventionFilter.java:187)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.apache.atlas.web.filters.AtlasAuthenticationFilter.doFilter(AtlasAuthenticationFilter.java:301)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:499)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)\n\tat java.lang.Thread.run(Thread.java:745)\nCaused by: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.\n\tat org.apache.kafka.clients.producer.KafkaProducer$FutureFailure.&amp;lt;init&amp;gt;(KafkaProducer.java:730)\n\tat org.apache.kafka.clients.producer.KafkaProducer.doSend(KafkaProducer.java:483)\n\tat org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:430)\n\tat org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:353)\n\tat org.apache.atlas.kafka.KafkaNotification.sendInternalToProducer(KafkaNotification.java:232)\n\t... 91 more\nCaused by: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.\n"}&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 03:06:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120495#M43048</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-10-08T03:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas API times out on entity creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120496#M43049</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt; From the stack trace, it seems like Atlas is not able to write to ATLAS_ENTITIES topic. &lt;/P&gt;&lt;P&gt;Since you have already done a check for topic existence, can you please provide more details about your cluster? &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it a secure cluster? &lt;UL&gt;&lt;LI&gt;If yes, does it have ranger enabled? If yes, what policies are configured for both kafka topics?&lt;/LI&gt;&lt;LI&gt;If no, do you have proper ACL/permissions configured for Atlas to read/write to the topics?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Also, can you check if anything is written to the topic ATLAS_ENTITIES using below command?&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;/usr/bin/kafka-console-consumer --zookeeper &amp;lt;zk_host&amp;gt; --topic &amp;lt;topic_name&amp;gt; --from-beginning&lt;/PRE&gt;&lt;P&gt;Kafka however advertises its "hostname" to producers and consumers to use, that name needs to resolve from where you're connecting. Also, check advertised port numbers are accessible.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 07:50:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120496#M43049</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-08T07:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas API times out on entity creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120497#M43050</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/40/apathan.html" nodeid="40"&gt;@Ayub Pathan&lt;/A&gt; impressive.  I had ranger kafka plugin turned on and atlas user did not have permission to write.  &lt;A rel="user" href="https://community.cloudera.com/users/231/aahn.html" nodeid="231"&gt;@Anderw Ahn&lt;/A&gt; I would like to see an authorization error during the operation instead of just timing out.  again thanks for your response.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 08:33:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120497#M43050</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-10-08T08:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas API times out on entity creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120498#M43051</link>
      <description>&lt;P&gt;i have the same issue only i recieve the error message not on every create entity request but requests containing referances to other entitys in the values of the entity type...&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;the entity is added to the atlas only i don't get the proper message but the error message instead&lt;/P&gt;,&lt;P&gt;I have the same problem but i get it only for an entity type containing an entity type as one of the values&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 03:38:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120498#M43051</guid>
      <dc:creator>meirs84</dc:creator>
      <dc:date>2018-11-06T03:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas API times out on entity creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120499#M43052</link>
      <description>&lt;P&gt;@meirs84 - can you please add details of the API call and the error received?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 08:26:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120499#M43052</guid>
      <dc:creator>mneethiraj</dc:creator>
      <dc:date>2018-11-07T08:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Atlas API times out on entity creation</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120500#M43053</link>
      <description>&lt;P&gt;It was a misunderstanding with the infrastructure team thanks nathan for the quick answer&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 13:59:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Atlas-API-times-out-on-entity-creation/m-p/120500#M43053</guid>
      <dc:creator>meirs84</dc:creator>
      <dc:date>2018-11-07T13:59:08Z</dc:date>
    </item>
  </channel>
</rss>

