[ https://issues.apache.org/jira/browse/KAFKA-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14159817#comment-14159817 ]
Matthew Sandoz commented on KAFKA-1672: --------------------------------------- ugh I should have considered this. i did another install on the .1 subnet and the consumer worked. I did the echo stat on a .2 vm as you recommended and it just hung. finally returned to bash prompt with no output. anywhere on the .1 subnet it worked. Is this just a firewall/routing issue on my end? If so are there any gotchas I should look out for specific to zk/kafka? > 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)