Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10896

TimeoutException when Producer try to send message to Kafka Broker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 2.6.0
    • None
    • clients, config
    • None

    Description

      Dear All,

       

      As I tried to setup new Kafka environment, even all work normally when I use consumer and producer binaries that shipped with Kafka source together. 

       

      However, when I ran small java application that create producer to send message of a topic to broker, but it has timeout exception with the message "Caused by: org.apache.kafka.common.errors.TimeoutException: Topic otp not present in metadata after 60000 ms."

       

      I checked some confluence pages related to Kafka but could not resolved yet.

       

      Please help me to resolve this as well ? and please see my file attachments for more details about broker information and sample source code.

      Best regards.

       

      Attachments

        1. timeout_exception.png
          41 kB
          Nguyen Cong Hieu
        2. serverconfig.png
          264 kB
          Nguyen Cong Hieu
        3. producercreate.png
          85 kB
          Nguyen Cong Hieu
        4. producerconfig.png
          104 kB
          Nguyen Cong Hieu
        5. console_producer.png
          120 kB
          Nguyen Cong Hieu
        6. console_consumer.png
          110 kB
          Nguyen Cong Hieu

        Activity

          People

            Unassigned Unassigned
            hieunc278 Nguyen Cong Hieu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: