{"action":"created","issue":{"url":"https://api.github.com/repos/wurstmeister/kafka-docker/issues/110","repository_url":"https://api.github.com/repos/wurstmeister/kafka-docker","labels_url":"https://api.github.com/repos/wurstmeister/kafka-docker/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/wurstmeister/kafka-docker/issues/110/comments","events_url":"https://api.github.com/repos/wurstmeister/kafka-docker/issues/110/events","html_url":"https://github.com/wurstmeister/kafka-docker/issues/110","id":168644523,"number":110,"title":"Not works on Docker Mac Native - Zookeeper timeouts","user":{"login":"abtris","id":100356,"avatar_url":"https://avatars3.githubusercontent.com/u/100356?v=4","gravatar_id":"","url":"https://api.github.com/users/abtris","html_url":"https://github.com/abtris","followers_url":"https://api.github.com/users/abtris/followers","following_url":"https://api.github.com/users/abtris/following{/other_user}","gists_url":"https://api.github.com/users/abtris/gists{/gist_id}","starred_url":"https://api.github.com/users/abtris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abtris/subscriptions","organizations_url":"https://api.github.com/users/abtris/orgs","repos_url":"https://api.github.com/users/abtris/repos","events_url":"https://api.github.com/users/abtris/events{/privacy}","received_events_url":"https://api.github.com/users/abtris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sscaling","id":1625151,"avatar_url":"https://avatars1.githubusercontent.com/u/1625151?v=4","gravatar_id":"","url":"https://api.github.com/users/sscaling","html_url":"https://github.com/sscaling","followers_url":"https://api.github.com/users/sscaling/followers","following_url":"https://api.github.com/users/sscaling/following{/other_user}","gists_url":"https://api.github.com/users/sscaling/gists{/gist_id}","starred_url":"https://api.github.com/users/sscaling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscaling/subscriptions","organizations_url":"https://api.github.com/users/sscaling/orgs","repos_url":"https://api.github.com/users/sscaling/repos","events_url":"https://api.github.com/users/sscaling/events{/privacy}","received_events_url":"https://api.github.com/users/sscaling/received_events","type":"User","site_admin":false},"assignees":[{"login":"sscaling","id":1625151,"avatar_url":"https://avatars1.githubusercontent.com/u/1625151?v=4","gravatar_id":"","url":"https://api.github.com/users/sscaling","html_url":"https://github.com/sscaling","followers_url":"https://api.github.com/users/sscaling/followers","following_url":"https://api.github.com/users/sscaling/following{/other_user}","gists_url":"https://api.github.com/users/sscaling/gists{/gist_id}","starred_url":"https://api.github.com/users/sscaling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscaling/subscriptions","organizations_url":"https://api.github.com/users/sscaling/orgs","repos_url":"https://api.github.com/users/sscaling/repos","events_url":"https://api.github.com/users/sscaling/events{/privacy}","received_events_url":"https://api.github.com/users/sscaling/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-08-01T13:22:35Z","updated_at":"2018-03-10T14:42:01Z","closed_at":null,"author_association":"NONE","body":"I'm using Docker Native with 6GB RAM, 2CPU Core.\n\n``` shell\n$ docker -v\nDocker version 1.12.0, build 8eab29e\n```\n- `kafka_2.11-0.10.0.0, zookeeper-3.4.6`\n\nI try make steps in [help](http://wurstmeister.github.io/kafka-docker/) for testing.\n\n``` shell\n$ docker-compose up -d\n$ docker-compose scale kafka=2\n$ ./start-kafka-shell.sh 172.18.0.2 172.18.0.3:2181\nbash-4.3# $KAFKA_HOME/bin/kafka-topics.sh --create --topic topic \\\n> --partitions 4 --zookeeper $ZK --replication-factor 2\nException in thread \"main\" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000\n    at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1232)\n    at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:156)\n    at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:130)\n    at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:75)\n    at kafka.utils.ZkUtils$.apply(ZkUtils.scala:57)\n    at kafka.admin.TopicCommand$.main(TopicCommand.scala:54)\n    at kafka.admin.TopicCommand.main(TopicCommand.scala)\n```\n\nAny idea why this not work?\nIt's some simple test for zookeeper how check if works correctly?\nIP Addresses are from `docker inspect`\n"},"comment":{"url":"https://api.github.com/repos/wurstmeister/kafka-docker/issues/comments/372034911","html_url":"https://github.com/wurstmeister/kafka-docker/issues/110#issuecomment-372034911","issue_url":"https://api.github.com/repos/wurstmeister/kafka-docker/issues/110","id":372034911,"user":{"login":"sscaling","id":1625151,"avatar_url":"https://avatars1.githubusercontent.com/u/1625151?v=4","gravatar_id":"","url":"https://api.github.com/users/sscaling","html_url":"https://github.com/sscaling","followers_url":"https://api.github.com/users/sscaling/followers","following_url":"https://api.github.com/users/sscaling/following{/other_user}","gists_url":"https://api.github.com/users/sscaling/gists{/gist_id}","starred_url":"https://api.github.com/users/sscaling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscaling/subscriptions","organizations_url":"https://api.github.com/users/sscaling/orgs","repos_url":"https://api.github.com/users/sscaling/repos","events_url":"https://api.github.com/users/sscaling/events{/privacy}","received_events_url":"https://api.github.com/users/sscaling/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T14:42:01Z","updated_at":"2018-03-10T14:42:01Z","author_association":"COLLABORATOR","body":"It looks like user error from the original question\r\n\r\n>$ docker-compose up -d\r\n> $ docker-compose scale kafka=2\r\n> $ ./start-kafka-shell.sh 172.18.0.2 172.18.0.3:2181\r\n\r\nThis looks like trying to use the `start-kafka-shell.sh` script with the internal container IPs, not the host IP.\r\n\r\nWhat i'd actually expect this command to look like is\r\n\r\n```\r\n$ ./start-kafka-shell.sh 10.0.0.99 10.0.0.99:2181\r\n```\r\nwhere `10.0.0.99` is the public addressable IP of your machine. This is because `start-kafka-shell.sh` script starts a separate docker container, not on the running clusters subnet. i.e. the DNS and IPs are not routable.\r\n\r\nthe IP addresses used need to be routable from the new container. \r\n\r\nI'll add this information to the tutorial."}}
{"actor":{"display_login":"sscaling"}}