{"action":"created","issue":{"url":"https://api.github.com/repos/celluloid/dcell/issues/46","labels_url":"https://api.github.com/repos/celluloid/dcell/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/celluloid/dcell/issues/46/comments","events_url":"https://api.github.com/repos/celluloid/dcell/issues/46/events","html_url":"https://github.com/celluloid/dcell/issues/46","id":14256605,"number":46,"title":"Zookeeper adapter","user":{"login":"kamsz","id":2961450,"avatar_url":"https://avatars.githubusercontent.com/u/2961450?v=3","gravatar_id":"","url":"https://api.github.com/users/kamsz","html_url":"https://github.com/kamsz","followers_url":"https://api.github.com/users/kamsz/followers","following_url":"https://api.github.com/users/kamsz/following{/other_user}","gists_url":"https://api.github.com/users/kamsz/gists{/gist_id}","starred_url":"https://api.github.com/users/kamsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamsz/subscriptions","organizations_url":"https://api.github.com/users/kamsz/orgs","repos_url":"https://api.github.com/users/kamsz/repos","events_url":"https://api.github.com/users/kamsz/events{/privacy}","received_events_url":"https://api.github.com/users/kamsz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2013-05-13T11:46:25Z","updated_at":"2015-02-24T23:06:26Z","closed_at":"2015-02-24T23:06:26Z","body":"Documentation doesn't specify the way to use ZK adapter in DCell. After trying to specify it using:\r\n\r\n``` ruby\r\nrequire 'dcell'\r\nrequire 'celluloid/io'\r\nrequire 'json'\r\nrequire 'socket'\r\n \r\nDCell.start :id => `hostname`.chomp!, :addr => \"tcp://#{IPSocket.getaddress(Socket.gethostname)}:5555\",\r\n            :registry =>\r\n                {\r\n                    :adapter => 'zk',\r\n                    :host => '192.168.15.11'\r\n                }\r\n```\r\n\r\nI've received exception:\r\n\r\n```\r\nD, [2013-05-13T09:31:50.458973 #20433] DEBUG -- : Terminating 1 actors...\r\nD, [2013-05-13T09:31:50.460026 #20433] DEBUG -- : Shutdown completed cleanly\r\n/var/lib/gems/1.9.1/gems/dcell-0.14.0/lib/dcell.rb:62:in `rescue in block in setup': invalid registry adapter:  (ArgumentError)\r\n        from /var/lib/gems/1.9.1/gems/dcell-0.14.0/lib/dcell.rb:59:in `block in setup'\r\n        from <internal:prelude>:10:in `synchronize'\r\n        from /var/lib/gems/1.9.1/gems/dcell-0.14.0/lib/dcell.rb:45:in `setup'\r\n        from /var/lib/gems/1.9.1/gems/dcell-0.14.0/lib/dcell.rb:101:in `start'\r\n        from agent-zoo.rb:6:in `<main>'\r\n```\r\n\r\nThanks to the @aflatter at IRC channel solution to the problem is to add requires for:\r\n1. zk\r\n2. dcell/registries/zk_adapter\r\n\r\nAlso :registry block looks slightly different:\r\n``` ruby\r\n            :registry =>\r\n                {\r\n                    :adapter => 'zk',\r\n                    :server => '192.168.15.11',\r\n                }\r\n"},"comment":{"url":"https://api.github.com/repos/celluloid/dcell/issues/comments/75868278","html_url":"https://github.com/celluloid/dcell/issues/46#issuecomment-75868278","issue_url":"https://api.github.com/repos/celluloid/dcell/issues/46","id":75868278,"user":{"login":"niamster","id":211000,"avatar_url":"https://avatars.githubusercontent.com/u/211000?v=3","gravatar_id":"","url":"https://api.github.com/users/niamster","html_url":"https://github.com/niamster","followers_url":"https://api.github.com/users/niamster/followers","following_url":"https://api.github.com/users/niamster/following{/other_user}","gists_url":"https://api.github.com/users/niamster/gists{/gist_id}","starred_url":"https://api.github.com/users/niamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niamster/subscriptions","organizations_url":"https://api.github.com/users/niamster/orgs","repos_url":"https://api.github.com/users/niamster/repos","events_url":"https://api.github.com/users/niamster/events{/privacy}","received_events_url":"https://api.github.com/users/niamster/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T23:06:26Z","updated_at":"2015-02-24T23:06:26Z","body":"Closing this as no activity ... hope it's clear now how to use ZK registry adapter."}}