<?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: Unable to Create entity in Atlas in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236986#M85245</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/39248/mujaowez.html" nodeid="39248"&gt;@Owez Mujawar&lt;/A&gt;&lt;P&gt;So you see the same exception when you try to publish a sample message to ATLAS_ENTITIES topic as atlas user. Some kafka config has been messed up - kafka brokers have been added or removed.&lt;/P&gt;&lt;P&gt;Please follow &lt;A href="https://community.hortonworks.com/content/supportkb/150063/how-to-add-new-kafka-brokers-to-a-cluster-and-move.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/150063/how-to-add-new-kafka-brokers-to-a-cluster-and-move.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to reassign ATLAS_ENTITIES/ATLAS_HOOK topic with new broker information.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 04:59:15 GMT</pubDate>
    <dc:creator>ssubramanian</dc:creator>
    <dc:date>2018-11-30T04:59:15Z</dc:date>
    <item>
      <title>Unable to Create entity in Atlas</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236981#M85240</link>
      <description>&lt;P&gt;Hi Team, &lt;/P&gt;&lt;P&gt;We are using HDP-2.6.5.0 and Ambari-2.6.2.0.
While creating new entity in Atlas we are getting following error in application.log. Currently we are not using Ranger. we trying to create new entity without ranger. &lt;/P&gt;&lt;PRE&gt;Caused by: org.apache.atlas.notification.NotificationException: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for ATLAS_ENTITIES-0: 30009 ms has passed since batch creation plus linger time
        at org.apache.atlas.kafka.KafkaNotification.sendInternalToProducer(KafkaNotification.java:220)
        at org.apache.atlas.kafka.KafkaNotification.sendInternal(KafkaNotification.java:182)
        at org.apache.atlas.notification.AbstractNotification.send(AbstractNotification.java:117)
        at org.apache.atlas.notification.NotificationEntityChangeListener.notifyOfEntityEvent(NotificationEntityChangeListener.java:208)
        at org.apache.atlas.notification.NotificationEntityChangeListener.onEntitiesUpdated(NotificationEntityChangeListener.java:102)

        at org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.notifyListeners(AtlasEntityC

hangeNotifier.java:176)
        ... 100 more
Caused by: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for ATLAS_ENTITIES-0: 30009 ms has passed since batch creation plus linger time
        at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.valueOrError(FutureRecordMetadata.java:94)
        at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:64)
        at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:29)
        at org.apache.atlas.kafka.KafkaNotification.sendInternalToProducer(KafkaNotification.java:207)
        ... 105 more
Caused by: org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for ATLAS_ENTITIES-0: 30009 ms has passed since batch creation plus linger time
2018-11-28 01:35:02,638 DEBUG - [pool-2-thread-10 - 2b585636-30dd-4484-a6a6-e4c05ae50167:] ~ ==&amp;gt; releaseLockedObjects(): lockedGuids.size: 0 (GraphTransactionInterceptor:187)
2018-11-28 01:35:02,638 DEBUG - [pool-2-thread-10 - 2b585636-30dd-4484-a6a6-e4c05ae50167:] ~ &amp;lt;== releaseLockedObjects(): lockedGuids.size: 0 (GraphTransactionInterceptor:197)
2018-11-28 01:35:02,638 DEBUG - [pool-2-thread-10 - 2b585636-30dd-4484-a6a6-e4c05ae50167:] ~ PERF|EntityREST.createOrUpdate()|30228 (EntityREST:77)
2018-11-28 01:35:02,638 ERROR - [pool-2-thread-10 - 2b585636-30dd-4484-a6a6-e4c05ae50167:] ~ Error handling a request: 168f59a001543090 (ExceptionMapperUtil:32)
org.apache.atlas.exception.AtlasBaseException: Failed to notify NotificationEntityChangeListener for change UPDATE
        at org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.notifyListeners(AtlasEntityChangeNotifier.java:183)


 &lt;/PRE&gt;&lt;P&gt;I can describe topic for ATLAS_ENTITIES&lt;/P&gt;&lt;PRE&gt;/usr/hdp/2.6.5.0-292/kafka/bin/kafka-topics.sh --describe --topic ATLAS_ENTITIES --zookeeper hadmgrndcc03-1.lifeway.org:2181,hadmgrndcc03-2.lifeway.org:2181,hadmgrndcc03-3.lifeway.org:2181
Topic:ATLAS_ENTITIES    PartitionCount:1        ReplicationFactor:1     Configs:
        Topic: ATLAS_ENTITIES   Partition: 0    Leader: 1003    Replicas: 1003  Isr: 1003
ACL Permission:-
 /usr/hdp/2.6.5.0-292/kafka/bin/kafka-acls.sh --add --allow-principal user:* --producer --topic ATLAS_ENTITIES --authorizer-properties zookeeper.connect=hadmgrndcc03-1.lifeway.org:2181,hadmgrndcc03-2.lifeway.org:2181,hadmgrndcc03-3.lifeway.org:2181
Adding ACLs for resource `Topic:ATLAS_ENTITIES`:
        user:* has Allow permission for operations: Write from hosts: *
        user:* has Allow permission for operations: Describe from hosts: *
Adding ACLs for resource `Cluster:kafka-cluster`:
        user:* has Allow permission for operations: Create from hosts: *
Current ACLs for resource `Topic:ATLAS_ENTITIES`:
        User: has Allow permission for operations: Read from hosts: *
        User: has Allow permission for operations: Describe from hosts: *
        user:* has Allow permission for operations: Write from hosts: *
        user:* has Allow permission for operations: Describe from hosts: *
        User:* has Allow permission for operations: Write from hosts: *
        user:* has Allow permission for operations: Write from hosts: application.log
        User:* has Allow permission for operations: Describe from hosts: *
        User:atlas has Allow permission for operations: Write from hosts: *
        user:* has Allow permission for operations: Read from hosts: application.log
        User:* has Allow permission for operations: Read from hosts: *
        User:atlas has Allow permission for operations: Describe from hosts: *&lt;/PRE&gt;&lt;P&gt;Could you please help in this issue and provide a solution for it. &lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;
Owez Mujawar&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 23:02:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236981#M85240</guid>
      <dc:creator>muja_owez</dc:creator>
      <dc:date>2018-11-28T23:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create entity in Atlas</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236982#M85241</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/39248/mujaowez.html" nodeid="39248"&gt;@Owez Mujawar&lt;/A&gt;&lt;P&gt;You see the  NotificationException because Atlas is unable to send a message to kafka topic &lt;STRONG&gt;ATLAS_ENTITIES&lt;/STRONG&gt;. Can you check if Kafka service is healthy? Another possible reason is when a new kafka broker was added and assigned leader and atlas doesn't know about it. To isolate this issue, can you try publishing a sample message to &lt;STRONG&gt;ATLAS_ENTITIES&lt;/STRONG&gt; topic as &lt;EM&gt;atlas&lt;/EM&gt; user and see if you see any permission issues.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 03:13:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236982#M85241</guid>
      <dc:creator>ssubramanian</dc:creator>
      <dc:date>2018-11-29T03:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create entity in Atlas</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236983#M85242</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/12092/ssubramanian.html"&gt;Sarath Subramanian&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As we are trying to execute the query but we are failing. below error for the same.&lt;/P&gt;&lt;P&gt;could you please help me to resolved this issue.&lt;/P&gt;&lt;PRE&gt;atlas@hadwkrndcc03-3:/var/log/atlas$ /usr/hdp/current/atlas-server/bin/quick_start.py
Enter username for atlas :- admin
Enter password for atlas :-
Creating sample types:
Created type [DB]
Created type [Table]
Created type [StorageDesc]
Created type [Column]
Created type [LoadProcess]
Created type [View]
Created type [JdbcAccess]
Created type [ETL]
Created type [Metric]
Created type [PII]
Created type [Fact]
Created type [Dimension]
Created type [Log Data]
Creating sample entities:
Exception in thread "main" org.apache.atlas.AtlasServiceException: Metadata service API org.apache.atlas.AtlasClientV2$API_V2@514646ef failed with status 500 (Internal Server Error) Response Body ({"errorCode":"ATLAS-500-00-007","errorMessage":"Failed to notify NotificationEntityChangeListener for change CREATE"})
        at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:387)
        at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:320)
        at org.apache.atlas.AtlasBaseClient.callAPI(AtlasBaseClient.java:208)
        at org.apache.atlas.AtlasClientV2.createEntity(AtlasClientV2.java:281)
        at org.apache.atlas.examples.QuickStartV2.createInstance(QuickStartV2.java:339)
        at org.apache.atlas.examples.QuickStartV2.createDatabase(QuickStartV2.java:362)
        at org.apache.atlas.examples.QuickStartV2.createEntities(QuickStartV2.java:268)
        at org.apache.atlas.examples.QuickStartV2.runQuickstart(QuickStartV2.java:150)
        at org.apache.atlas.examples.QuickStartV2.main(QuickStartV2.java:132)
No sample data added to Apache Atlas Server.&lt;/PRE&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Owez Mujawar&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 22:20:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236983#M85242</guid>
      <dc:creator>muja_owez</dc:creator>
      <dc:date>2018-11-29T22:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create entity in Atlas</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236984#M85243</link>
      <description>&lt;P style="margin-left: 20px;"&gt;@&lt;A href="https://community.hortonworks.com/users/12092/ssubramanian.html"&gt;Sarath Subramanian&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Please find below issue while publishing message to &lt;STRONG&gt;ATLAS_ENTITIES.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;atlas@hadwkrndcc03-3:/var/log/atlas$ /usr/hdp/2.6.5.0-292/kafka/bin/kafka-console-producer.sh --broker-list hadwkrndcc03-3.lifeway.org:6667 --topic ATLAS_ENTITIES
&amp;gt;olla
&amp;gt;[2018-11-29 05:50:15,694] ERROR Error when sending message to topic ATLAS_ENTITIES with key: null, value: 5 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for ATLAS_ENTITIES-0: 1526 ms has passed since batch creation plus linger time&lt;/PRE&gt;&lt;P&gt;Could you please help in this issue and provide a solution for it.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Owez Mujawar&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 23:06:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236984#M85243</guid>
      <dc:creator>muja_owez</dc:creator>
      <dc:date>2018-11-29T23:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create entity in Atlas</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236985#M85244</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/39248/mujaowez.html" nodeid="39248"&gt;@Owez Mujawar&lt;/A&gt;&lt;P&gt;So you see the same exception when you try to publish a sample message to ATLAS_ENTITIES topic as atlas user. Some kafka config has been messed up - kafka brokers have been added or removed.&lt;/P&gt;&lt;P&gt;Please follow &lt;A href="https://community.hortonworks.com/content/supportkb/150063/how-to-add-new-kafka-brokers-to-a-cluster-and-move.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/150063/how-to-add-new-kafka-brokers-to-a-cluster-and-move.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to reassign ATLAS_ENTITIES/ATLAS_HOOK topic with new broker information.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 04:59:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236985#M85244</guid>
      <dc:creator>ssubramanian</dc:creator>
      <dc:date>2018-11-30T04:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create entity in Atlas</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236986#M85245</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/39248/mujaowez.html" nodeid="39248"&gt;@Owez Mujawar&lt;/A&gt;&lt;P&gt;So you see the same exception when you try to publish a sample message to ATLAS_ENTITIES topic as atlas user. Some kafka config has been messed up - kafka brokers have been added or removed.&lt;/P&gt;&lt;P&gt;Please follow &lt;A href="https://community.hortonworks.com/content/supportkb/150063/how-to-add-new-kafka-brokers-to-a-cluster-and-move.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/150063/how-to-add-new-kafka-brokers-to-a-cluster-and-move.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to reassign ATLAS_ENTITIES/ATLAS_HOOK topic with new broker information.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 04:59:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236986#M85245</guid>
      <dc:creator>ssubramanian</dc:creator>
      <dc:date>2018-11-30T04:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Create entity in Atlas</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236987#M85246</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/12092/ssubramanian.html"&gt;Sarath Subramanian&lt;/A&gt;&lt;/P&gt;&lt;P&gt;now i am able publish a sample message to ATLAS_ENTITIES.&lt;/P&gt;&lt;P&gt;Resolution:&lt;/P&gt;&lt;P&gt;Deleted the older Atlas_entities and created a new one.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Owez Mujawar&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 13:52:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-Create-entity-in-Atlas/m-p/236987#M85246</guid>
      <dc:creator>muja_owez</dc:creator>
      <dc:date>2018-12-03T13:52:30Z</dc:date>
    </item>
  </channel>
</rss>

