I was unable to create the test topic. No error message though...
$ bin/kafka-topics.sh --create --bootstrap-server localhost:9092
--replication-factor 1 --partitions 1 --topic test
$ bin/kafka-topics.sh --list --bootstrap-server localhost:9092
$
I was curious what happens if I continue with step 4. The result:
LEADER_NOT_AVAILABLE errors…
$ bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
123
>[2019-05-24 03:03:55,765] WARN [Producer clientId=console-producer] Error
>while fetching metadata with correlation id 1 : {test=LEADER_NOT_AVAILABLE}
>(org.apache.kafka.clients.NetworkClient)
[2019-05-24 03:03:55,866] WARN [Producer clientId=console-producer] Error while
fetching metadata with correlation id 3 : {test=LEADER_NOT_AVAILABLE}
(org.apache.kafka.clients.NetworkClient)
[2019-05-24 03:03:55,973] WARN [Producer clientId=console-producer] Error while
fetching metadata with correlation id 4 : {test=LEADER_NOT_AVAILABLE}
(org.apache.kafka.clients.NetworkClient)
[2019-05-24 03:03:56,080] WARN [Producer clientId=console-producer] Error while
fetching metadata with correlation id 5 : {test=LEADER_NOT_AVAILABLE}
(org.apache.kafka.clients.NetworkClient)
> On May 23, 2019, at 8:34 AM, Jonathan Santilli <[email protected]>
> wrote:
>
> Hello Tom,
>
> did you follow all the steps as instructed in the quickstart? the log is an
> INFO, while doing it, you will notice logs with the message
> "Error:KeeperErrorCode = NoNode" in different places, this is normal, is
> the way it works or how have been designed the interaction from the Broker
> to Zookeeper.
> After finishing the instructions, were you able to send and produce
> messages from the created topic?
>
> Cheers!
>
>
>
> On Thu, May 23, 2019 at 1:50 PM Tom Kwong <[email protected]> wrote:
>
>> Yes, i first noticed that it failed at step 3 (creating topic) but when I
>> reviewed the log, the error already happened by step 2.
>>
>> https://kafka.apache.org/quickstart
>>
>> On May 23, 2019, at 1:52 AM, Robin Moffatt <[email protected]> wrote:
>>
>> Hi Tom,
>>
>> Can you link to which quickstart instructions you're following?
>>
>> thanks.
>>
>>
>> --
>>
>> Robin Moffatt | Developer Advocate | [email protected] | @rmoff
>>
>>
>>> On Thu, 23 May 2019 at 07:35, Tom Kwong <[email protected]> wrote:
>>>
>>> Hi,
>>> I’m getting the following error (NoNode for /brokers) on a fresh new
>>> install of kafka. There are more similar errors after that. Is there
>> any
>>> specific requirements to run Kafka?
>>>
>>> [2019-05-23 06:13:58,199] INFO Accepted socket connection from /
>>> 127.0.0.1:47078 (org.apache.zookeeper.server.NIOServerCnxnFactory)
>>> [2019-05-23 06:13:58,210] INFO Client attempting to establish new session
>>> at /127.0.0.1:47078 (org.apache.zookeeper.server.ZooKeeperServer)
>>> [2019-05-23 06:13:58,213] INFO Creating new log file: log.1
>>> (org.apache.zookeeper.server.persistence.FileTxnLog)
>>> [2019-05-23 06:13:58,228] INFO Established session 0x1025f9887e00000 with
>>> negotiated timeout 6000 for client /127.0.0.1:47078
>>> (org.apache.zookeeper.server.ZooKeeperServer)
>>> [2019-05-23 06:13:58,322] INFO Got user-level KeeperException when
>>> processing sessionid:0x1025f9887e00000 type:create cxid:0x2 zxid:0x3
>>> txntype:-1 reqpath:n/a Error Path:/brokers Error:KeeperErrorCode = NoNode
>>> for /brokers (org.apache.zookeeper.server.PrepRequestProcessor)
>>>
>>> I’m on AWS Linux
>>> Linux ip-172-31-4-54 4.14.88-72.76.amzn1.x86_64 #1 SMP Mon Jan 7 19:47:07
>>> UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
>>
>
>
> --
> Santilli Jonathan