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

zk timeouts with examples from 8.1.1.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.8.1.1
    • Fix Version/s: None
    • Component/s: clients, network
    • Labels:
      None
    • Environment:
      centos 6.4 x64 4gb RAM Java(TM) SE Runtime Environment (build 1.7.0_21-b11)

      Description

      i have two segments in my home network. 192.168.1.X and 192.168.2.X. My servers are on the .1 subnet. Here's what I did.

      Install Kafka on my server on .1 subnet. run included zookeeper, run included kafka server start script. run consumer. run producer.

      as long as thats all i did everything was fine.

      I then installed on a vm my .2 subnet. pointed producer and consumer to the .1 zk and get only timeouts. i can get to each vm from each other vm.

      is there something special i need to do? i've tried playing around with the config files - explicitly setting server.properties host.name to explicitly refer to the server that zk is running on.

      everything vanilla installed from version kafka/0.8.1.1/kafka_2.9.2-0.8.1.1.tgz file.

      [kafka@vagrant-centos-6 kafka_2.9.2-0.8.1.1]$ bin/kafka-console-consumer.sh --zookeeper chef-server.attlocal.net:2181 --topic test

      consumer properties:
      zookeeper.connect=chef-server.attlocal.net:2181
      zookeeper.connection.timeout.ms=1000000
      group.id=test-consumer-group

      Exception in thread "main" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000
      at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:880)

      can i provide any other info?

        Attachments

          Activity

            People

            • Assignee:
              junrao Jun Rao
              Reporter:
              msandoz Matthew Sandoz
              Reviewer:
              Matthew Sandoz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: