You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Adaryl Wakefield <ad...@hotmail.com> on 2017/04/17 10:09:42 UTC

Kafka won't take messages

My cluster is not accepting connections and messages for some reason. I'm not sure where to start troubleshooting. When I try to test it with:
$ bin/kafka-console-producer.sh --broker-list localhost:6667 --topic test_topic

It just hangs. When I try to run a Simple Producer, I get the same result.

Adaryl "Bob" Wakefield, MBA
Principal
Mass Street Analytics, LLC
913.938.6685
www.massstreet.net
www.linkedin.com/in/bobwakefieldmba
Twitter: @BobLovesData


RE: Kafka won't take messages

Posted by Adaryl Wakefield <ad...@hotmail.com>.
Got it. It turns out localhost wouldn't fly. It needed the actual url of the server.

Adaryl "Bob" Wakefield, MBA
Principal
Mass Street Analytics, LLC
913.938.6685
www.massstreet.net
www.linkedin.com/in/bobwakefieldmba
Twitter: @BobLovesData

-----Original Message-----
From: Vinod KC [mailto:VKC@hortonworks.com] 
Sent: Monday, April 17, 2017 6:25 AM
To: users@kafka.apache.org
Subject: Re: Kafka won't take messages

Can you check the value of ‘listeners’ in server.properties ?
Eg: listeners=PLAINTEXT://<host>:<port>
Ensure the port you are connecting is correct


On 4/17/17, 4:34 PM, "Adaryl Wakefield" <ad...@hotmail.com> wrote:

    [2017-04-17 07:03:20,183] ERROR Error when sending message to topic test_topic with key: null, value: 22 bytes with error: (
    org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
    org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
    
    Adaryl "Bob" Wakefield, MBA
    Principal
    Mass Street Analytics, LLC
    913.938.6685
    www.massstreet.net
    www.linkedin.com/in/bobwakefieldmba
    Twitter: @BobLovesData
    
    -----Original Message-----
    From: Sandeep Nemuri [mailto:nhsandeep6@gmail.com] 
    Sent: Monday, April 17, 2017 5:48 AM
    To: users@kafka.apache.org
    Subject: Re: Kafka won't take messages
    
    When you run the producer it will be expecting you to produce some message(s). Run a consumer simultaneously and enter some message in producer console. you should be able to see the same in at console consumer output.
    
    On Mon, Apr 17, 2017 at 3:39 PM, Adaryl Wakefield < adaryl.wakefield@hotmail.com> wrote:
    
    > My cluster is not accepting connections and messages for some reason. 
    > I'm not sure where to start troubleshooting. When I try to test it with:
    > $ bin/kafka-console-producer.sh --broker-list localhost:6667 --topic 
    > test_topic
    >
    > It just hangs. When I try to run a Simple Producer, I get the same result.
    >
    > Adaryl "Bob" Wakefield, MBA
    > Principal
    > Mass Street Analytics, LLC
    > 913.938.6685
    > www.massstreet.net
    > www.linkedin.com/in/bobwakefieldmba
    > Twitter: @BobLovesData
    >
    >
    
    
    --
    *  Regards*
    *  Sandeep Nemuri*
    


RE: Kafka won't take messages

Posted by Adaryl Wakefield <ad...@hotmail.com>.
PLAINTEXT://localhost:6667

Interestingly though, it won't take localhost. It requires the server url. That may have something to do with the way I have the server configured.

Adaryl "Bob" Wakefield, MBA
Principal
Mass Street Analytics, LLC
913.938.6685
www.massstreet.net
www.linkedin.com/in/bobwakefieldmba
Twitter: @BobLovesData

-----Original Message-----
From: Vinod KC [mailto:VKC@hortonworks.com] 
Sent: Monday, April 17, 2017 6:25 AM
To: users@kafka.apache.org
Subject: Re: Kafka won't take messages

Can you check the value of ‘listeners’ in server.properties ?
Eg: listeners=PLAINTEXT://<host>:<port>
Ensure the port you are connecting is correct


On 4/17/17, 4:34 PM, "Adaryl Wakefield" <ad...@hotmail.com> wrote:

    [2017-04-17 07:03:20,183] ERROR Error when sending message to topic test_topic with key: null, value: 22 bytes with error: (
    org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
    org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
    
    Adaryl "Bob" Wakefield, MBA
    Principal
    Mass Street Analytics, LLC
    913.938.6685
    www.massstreet.net
    www.linkedin.com/in/bobwakefieldmba
    Twitter: @BobLovesData
    
    -----Original Message-----
    From: Sandeep Nemuri [mailto:nhsandeep6@gmail.com] 
    Sent: Monday, April 17, 2017 5:48 AM
    To: users@kafka.apache.org
    Subject: Re: Kafka won't take messages
    
    When you run the producer it will be expecting you to produce some message(s). Run a consumer simultaneously and enter some message in producer console. you should be able to see the same in at console consumer output.
    
    On Mon, Apr 17, 2017 at 3:39 PM, Adaryl Wakefield < adaryl.wakefield@hotmail.com> wrote:
    
    > My cluster is not accepting connections and messages for some reason. 
    > I'm not sure where to start troubleshooting. When I try to test it with:
    > $ bin/kafka-console-producer.sh --broker-list localhost:6667 --topic 
    > test_topic
    >
    > It just hangs. When I try to run a Simple Producer, I get the same result.
    >
    > Adaryl "Bob" Wakefield, MBA
    > Principal
    > Mass Street Analytics, LLC
    > 913.938.6685
    > www.massstreet.net
    > www.linkedin.com/in/bobwakefieldmba
    > Twitter: @BobLovesData
    >
    >
    
    
    --
    *  Regards*
    *  Sandeep Nemuri*
    


Re: Kafka won't take messages

Posted by Vinod KC <VK...@hortonworks.com>.
Can you check the value of ‘listeners’ in server.properties ?
Eg: listeners=PLAINTEXT://<host>:<port>
Ensure the port you are connecting is correct


On 4/17/17, 4:34 PM, "Adaryl Wakefield" <ad...@hotmail.com> wrote:

    [2017-04-17 07:03:20,183] ERROR Error when sending message to topic test_topic with key: null, value: 22 bytes with error: (
    org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
    org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
    
    Adaryl "Bob" Wakefield, MBA
    Principal
    Mass Street Analytics, LLC
    913.938.6685
    www.massstreet.net
    www.linkedin.com/in/bobwakefieldmba
    Twitter: @BobLovesData
    
    -----Original Message-----
    From: Sandeep Nemuri [mailto:nhsandeep6@gmail.com] 
    Sent: Monday, April 17, 2017 5:48 AM
    To: users@kafka.apache.org
    Subject: Re: Kafka won't take messages
    
    When you run the producer it will be expecting you to produce some message(s). Run a consumer simultaneously and enter some message in producer console. you should be able to see the same in at console consumer output.
    
    On Mon, Apr 17, 2017 at 3:39 PM, Adaryl Wakefield < adaryl.wakefield@hotmail.com> wrote:
    
    > My cluster is not accepting connections and messages for some reason. 
    > I'm not sure where to start troubleshooting. When I try to test it with:
    > $ bin/kafka-console-producer.sh --broker-list localhost:6667 --topic 
    > test_topic
    >
    > It just hangs. When I try to run a Simple Producer, I get the same result.
    >
    > Adaryl "Bob" Wakefield, MBA
    > Principal
    > Mass Street Analytics, LLC
    > 913.938.6685
    > www.massstreet.net
    > www.linkedin.com/in/bobwakefieldmba
    > Twitter: @BobLovesData
    >
    >
    
    
    --
    *  Regards*
    *  Sandeep Nemuri*
    


RE: Kafka won't take messages

Posted by Adaryl Wakefield <ad...@hotmail.com>.
[2017-04-17 07:03:20,183] ERROR Error when sending message to topic test_topic with key: null, value: 22 bytes with error: (
org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

Adaryl "Bob" Wakefield, MBA
Principal
Mass Street Analytics, LLC
913.938.6685
www.massstreet.net
www.linkedin.com/in/bobwakefieldmba
Twitter: @BobLovesData

-----Original Message-----
From: Sandeep Nemuri [mailto:nhsandeep6@gmail.com] 
Sent: Monday, April 17, 2017 5:48 AM
To: users@kafka.apache.org
Subject: Re: Kafka won't take messages

When you run the producer it will be expecting you to produce some message(s). Run a consumer simultaneously and enter some message in producer console. you should be able to see the same in at console consumer output.

On Mon, Apr 17, 2017 at 3:39 PM, Adaryl Wakefield < adaryl.wakefield@hotmail.com> wrote:

> My cluster is not accepting connections and messages for some reason. 
> I'm not sure where to start troubleshooting. When I try to test it with:
> $ bin/kafka-console-producer.sh --broker-list localhost:6667 --topic 
> test_topic
>
> It just hangs. When I try to run a Simple Producer, I get the same result.
>
> Adaryl "Bob" Wakefield, MBA
> Principal
> Mass Street Analytics, LLC
> 913.938.6685
> www.massstreet.net
> www.linkedin.com/in/bobwakefieldmba
> Twitter: @BobLovesData
>
>


--
*  Regards*
*  Sandeep Nemuri*

Re: Kafka won't take messages

Posted by Sandeep Nemuri <nh...@gmail.com>.
When you run the producer it will be expecting you to produce some
message(s). Run a consumer simultaneously and enter some message in
producer console. you should be able to see the same in at console consumer
output.

On Mon, Apr 17, 2017 at 3:39 PM, Adaryl Wakefield <
adaryl.wakefield@hotmail.com> wrote:

> My cluster is not accepting connections and messages for some reason. I'm
> not sure where to start troubleshooting. When I try to test it with:
> $ bin/kafka-console-producer.sh --broker-list localhost:6667 --topic
> test_topic
>
> It just hangs. When I try to run a Simple Producer, I get the same result.
>
> Adaryl "Bob" Wakefield, MBA
> Principal
> Mass Street Analytics, LLC
> 913.938.6685
> www.massstreet.net
> www.linkedin.com/in/bobwakefieldmba
> Twitter: @BobLovesData
>
>


-- 
*  Regards*
*  Sandeep Nemuri*