<?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: Kafka Producer on Apache Atlas via command line in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215247#M63581</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17573/smartdatabundle.html" nodeid="17573"&gt;@Smart Data&lt;/A&gt; , &lt;/P&gt;&lt;P&gt;Can you please check if the port 9092 is correct in the broker list and the broker is up and running ?&lt;/P&gt;&lt;P&gt;Also , is your cluster kerberized ?&lt;/P&gt;&lt;P&gt;Please note that :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The issue has nothing to do with Atlas or Ranger&lt;/STRONG&gt; . When Atlas starts up , it creates 2 kafka topics ATLAS_HOOK and ATLAS_ENTITIES . The user doesn't have to create any topic.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 21:27:08 GMT</pubDate>
    <dc:creator>ssainath</dc:creator>
    <dc:date>2017-06-23T21:27:08Z</dc:date>
    <item>
      <title>Kafka Producer on Apache Atlas via command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215246#M63580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to use this command line :&lt;/P&gt;&lt;PRE&gt;&amp;gt; $KAFKA_BORKER_HOME/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

&amp;gt; $KAFKA_BORKER_HOME/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
&lt;/PRE&gt;&lt;P&gt;When I typed a test message like:&lt;/P&gt;&lt;PRE&gt;test message 1&lt;/PRE&gt;&lt;P&gt;I had this error message :&lt;/P&gt;&lt;PRE&gt;[2017-06-23 10:17:43,467] ERROR Error when sending message to topic test with key: null, value: 14 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

&lt;/PRE&gt;&lt;P&gt;Do you have a suggestion ?&lt;/P&gt;&lt;P&gt;A this time, I am investigated around Ranger configuration.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 19:37:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215246#M63580</guid>
      <dc:creator>smartdatabundle</dc:creator>
      <dc:date>2017-06-23T19:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Producer on Apache Atlas via command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215247#M63581</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17573/smartdatabundle.html" nodeid="17573"&gt;@Smart Data&lt;/A&gt; , &lt;/P&gt;&lt;P&gt;Can you please check if the port 9092 is correct in the broker list and the broker is up and running ?&lt;/P&gt;&lt;P&gt;Also , is your cluster kerberized ?&lt;/P&gt;&lt;P&gt;Please note that :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The issue has nothing to do with Atlas or Ranger&lt;/STRONG&gt; . When Atlas starts up , it creates 2 kafka topics ATLAS_HOOK and ATLAS_ENTITIES . The user doesn't have to create any topic.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 21:27:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215247#M63581</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2017-06-23T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Producer on Apache Atlas via command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215248#M63582</link>
      <description>&lt;P&gt;Thanks for your comment &lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I use HDP SandBox, so I use the default configuration.&lt;/P&gt;&lt;P&gt;Mu cluster is not kerberized.&lt;/P&gt;&lt;P&gt;First, I tried to use kafka-console-producer.sh to create an entity on ATLAS_HOOK. I had the same error message.&lt;/P&gt;&lt;P&gt;Command :&lt;/P&gt;&lt;PRE&gt; lsof -i -P -n  | grep kafka
&lt;/PRE&gt;&lt;P&gt;Result :&lt;/P&gt;&lt;PRE&gt;java       x      kafka  x  IPv6 x      0t0  TCP *:60141 (LISTEN)
java       x      kafka  x  IPv6 x      0t0  TCP 192.x.x.x:49648-&amp;gt;192.x.x.x:2181 (ESTABLISHED)
java       x      kafka  x  IPv6 x      0t0  TCP 192.x.x.x:6667 (LISTEN)
java       x      kafka  x  IPv6 x      0t0  TCP 1192.x.x.x:6667-&amp;gt;192.x.x.x:32837 (ESTABLISHED)
java       x      kafka  x  IPv6 x      0t0  TCP 192.x.x.x:47712-&amp;gt;192.x.x.x:6667 (CLOSE_WAIT)
java       x      kafka  x  IPv6 x      0t0  TCP 192.x.x.x:45976-&amp;gt;192.x.x.x:6188 (ESTABLISHED)
java       x      kafka  x  IPv6 x      0t0  TCP 192.x.x.x:6667-&amp;gt;192.x.x.x:47717 (ESTABLISHED)
&lt;/PRE&gt;&lt;P&gt;Command :&lt;/P&gt;&lt;PRE&gt;$KAFKA_BROKER_HOME/bin/kafka-topics.sh --describe --topic ATLAS_HOOK --zookeeper localhost:2181
&lt;/PRE&gt;&lt;P&gt;Result :&lt;/P&gt;&lt;PRE&gt;Topic:ATLAS_HOOK        PartitionCount:1        ReplicationFactor:1     Configs:
        Topic: ATLAS_HOOK       Partition: 0    Leader: 1001    Replicas: 1001  Isr: 1001


&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 22:07:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215248#M63582</guid>
      <dc:creator>smartdatabundle</dc:creator>
      <dc:date>2017-06-23T22:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Producer on Apache Atlas via command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215249#M63583</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/17573/smartdatabundle.html" nodeid="17573" target="_blank"&gt;@Smart Data&lt;/A&gt;&lt;P&gt;Can you please try with "--broker-list localhost:6667" ?&lt;/P&gt;&lt;P&gt;broker seems to be running on port 6667.&lt;/P&gt;&lt;P&gt;To verify the port number on which kafka broker is running , get into zookeeper client shell&lt;/P&gt;&lt;P&gt;using $ZOOKEEPER_HOME/bin/zkCli.sh and get the broker port.&lt;/P&gt;&lt;P&gt;The following image is taken after running zookeeper client shell and note that get /brokers/ids/0 lists the port.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16569-screen-shot-2017-06-23-at-92139-pm.png" style="width: 1892px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16324i9537900B87195772/image-size/medium?v=v2&amp;amp;px=400" role="button" title="16569-screen-shot-2017-06-23-at-92139-pm.png" alt="16569-screen-shot-2017-06-23-at-92139-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best way to check the processes running on a port is using lsof -i:6667.&lt;/P&gt;&lt;P&gt;In your case , "kakfa" in the 3rd column of output  lsof -i -P -n  | grep kafka is the kafka user and not the process itself.&lt;/P&gt;&lt;P&gt;Also , best practice is to use the hostname itself instead of "localhost".&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:19:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215249#M63583</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2019-08-18T03:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Kafka Producer on Apache Atlas via command line</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215250#M63584</link>
      <description>&lt;P&gt;Thank you su much &lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;Your comment is very useful !!!&lt;/P&gt;&lt;P&gt;I tested these commands :&lt;/P&gt;&lt;PRE&gt;$KAFKA_HOME/bin/kafka-console-producer.sh --broker-list MY_HOSTNAME:6667 --topic ATLAS_HOOK
&lt;/PRE&gt;&lt;P&gt;Then in Kafka Procuder console:&lt;/P&gt;&lt;PRE&gt;{"version": {"version": "1.0.0"}, "message": {"entities": [{"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "id": {"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "id": "-1467290565135246000", "version": 0, "typeName": "hdfs_path", "state": "ACTIVE"}, "typeName": "hdfs_path", "values": {"qualifiedName": "TestKafka", "owner": "admin", "description": "Test kafka", "path":"/user/data/testkafka.csv", posixPermissions": null, "createTime": "1970-01-01T00:00:00.000Z", "isSymlink": false, "extendedAttributes": null, "numberOfReplicas": 0, "name": "DataKFK"}, "traitNames": [], "traits": {} }], "type": "ENTITY_CREATE", "user": "admin"} }
&lt;/PRE&gt;&lt;P&gt;So, Atlas notifies into ATLAS_ENTITIES topic this new entity. I could see it on Atlas UI !&lt;/P&gt;&lt;P&gt;Have a good day !&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:40:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kafka-Producer-on-Apache-Atlas-via-command-line/m-p/215250#M63584</guid>
      <dc:creator>smartdatabundle</dc:creator>
      <dc:date>2017-06-26T14:40:30Z</dc:date>
    </item>
  </channel>
</rss>

