Skip to content

Instantly share code, notes, and snippets.

@jtuple
Created September 10, 2011 04:01
Show Gist options
  • Save jtuple/1207902 to your computer and use it in GitHub Desktop.
Save jtuple/1207902 to your computer and use it in GitHub Desktop.
Assuming there are 2 nodes called riak@host1 and riak@host2.
Attach to riak console for riak@host1. Either 'riak-admin console' if the node is down, or 'riak-admin attach' if the node is already up and running.
Update the first line below with the right "other node" name, then copy/paste:
Other = 'riak@host2'.
net_adm:ping(Other).
riak_kv_console:join([atom_to_list(Other)]).
riak:join(Other).
rpc:call(Other, application, get_env, [riak_core, ring_creation_size]).
erlang:get_cookie().
Gist/Pastebin the results.
@jimadler
Copy link

(riak@xx.xx.xx.206)1> Other = 'riak@xx.xx.xx.145'.
'riak@xx.xx.xx.145'
(riak@xx.xx.xx.206)2> net_adm:ping(Other).
pong
(riak@xx.xx.xx.206)3> riak_kv_console:join([atom_to_list(Other)]).
Sent join request to riak@xx.xx.xx.145
ok
(riak@xx.xx.xx.206)4>
(riak@xx.xx.xx.206)4> riak:join(Other).
ok
(riak@xx.xx.xx.206)5>
(riak@xx.xx.xx.206)5>
(riak@xx.xx.xx.206)5> rpc:call(Other, application, get_env, [riak_core, ring_creation_size]).
{ok,256}
(riak@xx.xx.xx.206)6> erlang:get_cookie().
riak
(riak@xx.xx.xx.206)7>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment