DCell and ZooKeeper

70 views
Skip to first unread message

kamsz

unread,
Apr 29, 2013, 6:01:41 AM4/29/13
to cellulo...@googlegroups.com
Hi,

I'm not being able to configure DCell to use ZooKeeper as adapter.

My configuration is:
DCell.start :id => "node1", :addr => "tcp://0.0.0.0:5510",
            :adapter => 'zk',
            :host => '127.0.0.1',
            :port => '2181'
}

Error received:

/var/lib/gems/1.9.1/gems/dcell-0.13.0/lib/dcell.rb:62:in `rescue in block in setup': invalid registry adapter:  (ArgumentError)
        from /var/lib/gems/1.9.1/gems/dcell-0.13.0/lib/dcell.rb:59:in `block in setup'
        from <internal:prelude>:10:in `synchronize'
        from /var/lib/gems/1.9.1/gems/dcell-0.13.0/lib/dcell.rb:45:in `setup'
        from /var/lib/gems/1.9.1/gems/dcell-0.13.0/lib/dcell.rb:101:in `start'
        from agent.rb:6:in `<main>'

Any help will be appreciated.

Kamil

kamsz

unread,
Apr 29, 2013, 6:09:38 AM4/29/13
to cellulo...@googlegroups.com
I'm sorry, configuration code is:
DCell.start :id => "node1", :addr => "tcp://0.0.0.0:5510",
            :registry =>
                {

Ranjib Dey

unread,
Apr 29, 2013, 10:36:17 AM4/29/13
to cellulo...@googlegroups.com

Can you try with the latest version i.e. gem install dcell --pre

--
You received this message because you are subscribed to the Google Groups "Celluloid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to celluloid-rub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

kamsz

unread,
Apr 30, 2013, 2:30:12 AM4/30/13
to cellulo...@googlegroups.com
I've built latest version from github (0.14.0-pre) and I receive different error:

/var/lib/gems/1.9.1/gems/dcell-0.14.0.pre/lib/dcell/rpc.rb:4:in `<module:DCell>': uninitialized constant Celluloid::BlockProxy (NameError)
        from /var/lib/gems/1.9.1/gems/dcell-0.14.0.pre/lib/dcell/rpc.rb:3:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/lib/gems/1.9.1/gems/dcell-0.14.0.pre/lib/dcell.rb:17:in `<top (required)>'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
        from agent.rb:1:in `<main>'

Line 1 is simply require 'dcell'.

Tim Carey-Smith

unread,
Apr 30, 2013, 5:49:32 PM4/30/13
to cellulo...@googlegroups.com
You will need to be using Celluloid 0.14.0-pre.
The deps should have been updated for this release, sorry.

Tim

On Apr 30, 2013, at 6:30 PM, kamsz <kamszc...@gmail.com> wrote:

> I've built latest version from github (0.14.0-pre) and I receive different
> error:
>
> /var/lib/gems/1.9.1/gems/dcell-0.14.0.pre/lib/dcell/rpc.rb:4:in
> `<module:DCell>': uninitialized constant Celluloid::BlockProxy (NameError)
> from
> /var/lib/gems/1.9.1/gems/dcell-0.14.0.pre/lib/dcell/rpc.rb:3:in `<top
> (required)>'
> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
> from /var/lib/gems/1.9.1/gems/dcell-0.14.0.pre/lib/dcell.rb:17:in
> `<top (required)>'
> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue
> in require'
> from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
> from agent.rb:1:in `<main>'
>
> Line 1 is simply require 'dcell'.
>
> W dniu poniedziałek, 29 kwietnia 2013 16:36:17 UTC+2 użytkownik Ranjib Dey
> napisał:
>>
>> Can you try with the latest version i.e. gem install dcell --pre
>> On Apr 29, 2013 3:09 AM, "kamsz" <kamszc...@gmail.com <javascript:>>
>> wrote:
>>
>>> I'm sorry, configuration code is:
>>> DCell.start :id => "node1", :addr => "tcp://0.0.0.0:5510",
>>> :registry =>
>>> {
>>> :adapter => 'zk',
>>> :host => '127.0.0.1',
>>> :port => '2181'
>>> }
>>>
>>> W dniu poniedziałek, 29 kwietnia 2013 12:01:41 UTC+2 użytkownik kamsz
>>> napisał:
>>>>
>>>> Hi,
>>>>
>>>> I'm not being able to configure DCell to use ZooKeeper as adapter.
>>>>
>>>> My configuration is:
>>>> DCell.start :id => "node1", :addr => "tcp://0.0.0.0:5510",
>>>> :adapter => 'zk',
>>>> :host => '127.0.0.1',
>>>> :port => '2181'
>>>> }
>>>>
>>>> Error received:
>>>>
>>>> /var/lib/gems/1.9.1/gems/**dcell-0.13.0/lib/dcell.rb:62:**in `rescue in
>>>> block in setup': invalid registry adapter: (ArgumentError)
>>>> from /var/lib/gems/1.9.1/gems/**dcell-0.13.0/lib/dcell.rb:59:**in
>>>> `block in setup'
>>>> from <internal:prelude>:10:in `synchronize'
>>>> from /var/lib/gems/1.9.1/gems/**dcell-0.13.0/lib/dcell.rb:45:**in
>>>> `setup'
>>>> from /var/lib/gems/1.9.1/gems/**dcell-0.13.0/lib/dcell.rb:101:**in
>>>> `start'
>>>> from agent.rb:6:in `<main>'
>>>>
>>>> Any help will be appreciated.
>>>>
>>>> Kamil
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Celluloid" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to celluloid-rub...@googlegroups.com <javascript:>.

kamsz

unread,
May 6, 2013, 2:28:28 AM5/6/13
to cellulo...@googlegroups.com
Sadly upgrade to 0.14.0-pre didn't help, I still receive invalid registry adapter error while trying to use ZooKeeper.


W dniu poniedziałek, 29 kwietnia 2013 12:01:41 UTC+2 użytkownik kamsz napisał:

Tim Carey-Smith

unread,
May 6, 2013, 4:10:03 AM5/6/13
to cellulo...@googlegroups.com
Hi!

It might be best to jump on IRC.
Could you post a gist of your code and Gemfile?

See https://github.com/celluloid/celluloid/blob/master/CONTRIBUTING.md for some best ways to allow us to help you.

Thanks for your patience!

Ciao,
Tim
Reply all
Reply to author
Forward
0 new messages