You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Matthew Sandoz (JIRA)" <ji...@apache.org> on 2014/10/07 03:49:34 UTC

[jira] [Resolved] (KAFKA-1672) zk timeouts with examples from 8.1.1.1

     [ https://issues.apache.org/jira/browse/KAFKA-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthew Sandoz resolved KAFKA-1672.
-----------------------------------
    Resolution: Not a Problem
      Reviewer: Matthew Sandoz

> zk timeouts with examples from 8.1.1.1
> --------------------------------------
>
>                 Key: KAFKA-1672
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1672
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, network
>    Affects Versions: 0.8.1.1
>         Environment: centos 6.4 x64 4gb RAM Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
>            Reporter: Matthew Sandoz
>            Assignee: Jun Rao
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)