<?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: cant create a Kafka topic in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144532#M28154</link>
    <description>&lt;P&gt;actually zookeeper server is running on three different servers ,namely Slave3, Master, SecondaryMaster&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 01:16:43 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2016-05-13T01:16:43Z</dc:date>
    <item>
      <title>cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144528#M28150</link>
      <description>&lt;P&gt;when running the command "&lt;/P&gt;&lt;P&gt;kafka-topics.sh --create --zookeeper ip-172-31-8-79.ec2.internal --replication-factor 1 --partitions 4 --topic mytopic"&lt;/P&gt;&lt;P&gt;I am getting the following msgs , and it exits after couple of secs. Its saying it cant connect to zookeeper but zookeeper is up and running .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[2016-05-12 12:32:10,272] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.ClientCnxn)
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:1125)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1125)
Exception in thread "main" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:16:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144528#M28150</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-13T01:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144529#M28151</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Telnet showing connection refused to port 2181 eventhough zookeeper is running :&lt;/P&gt;&lt;P&gt;[hdfs@ip-172-31-8-79 ~]$ telnet ip-172-31-8-79.ec2.internal 2181
Trying 172.31.8.79...
telnet: connect to address 172.31.8.79: Connection refused
[hdfs@ip-172-31-8-79 ~]$ ps -ef | grep "zookeper.properties"
hdfs  22894 22772  0 12:52 pts/1  00:00:00 grep zookeper.properties
[hdfs@ip-172-31-8-79 ~]$&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:16:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144529#M28151</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-13T01:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144530#M28152</link>
      <description>&lt;P&gt;I see there is no zookeeper server running on this node but only zookeeper client . this node is called Slave1 , all three zookeeper server processes are running on  MasterNode.  and telnet from Slave1 to MasterNode on port 2181 works fine.  so why I am getting connection refused ?  I am running the kafka command on Slave1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[hdfs@ip-172-31-8-79 ~]$ telnet MasterNode 2181
Trying 172.31.8.77...
Connected to MasterNode.
Escape character is '^]'.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:16:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144530#M28152</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-13T01:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144531#M28153</link>
      <description>&lt;P&gt;this step also did not help :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put maxClientCnxns=30 in file  
/etc/zookeeper/conf/zoo.cfg &lt;/P&gt;&lt;P&gt;retart zookeeper :&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:16:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144531#M28153</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-13T01:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144532#M28154</link>
      <description>&lt;P&gt;actually zookeeper server is running on three different servers ,namely Slave3, Master, SecondaryMaster&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:16:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144532#M28154</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-13T01:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144533#M28155</link>
      <description>&lt;P&gt;Can you try putting the port in the --zookeeper option. Like ip-172-31-8-79.ec2.internal:2181 ?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:16:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144533#M28155</guid>
      <dc:creator>pshah</dc:creator>
      <dc:date>2016-05-13T01:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144534#M28156</link>
      <description>&lt;P&gt;ah dumb me I was not using the right host address .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;
[hdfs@ip-172-31-8-79 ~]$ kafka-topics.sh --create --zookeeper MasterNode --replication-factor 1 --partitions 4 --topic mytopic
Created topic "mytopic".
[hdfs@ip-172-31-8-79 ~]$&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 01:23:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144534#M28156</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-13T01:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: cant create a Kafka topic</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144535#M28157</link>
      <description>&lt;P&gt;run the following command before creating topic &lt;/P&gt;&lt;P&gt;export KAFKA_CLIENT_KERBEROS_PARAMS="-Djava.security.auth.login.config=/usr/hdp/current/kafka-broker/config/kafka_client_jaas.conf"&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 04:27:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cant-create-a-Kafka-topic/m-p/144535#M28157</guid>
      <dc:creator>rkandula</dc:creator>
      <dc:date>2016-11-22T04:27:57Z</dc:date>
    </item>
  </channel>
</rss>

