Plenty of surfing the interwebs ensued, all to no avail. Eventually I tried:
$erl -sname gandalf@localhost
Erlang (BEAM) emulator version 5.5.4 [source]
[async-threads:0] [kernel-poll:false]
Eshell V5.5.4 (abort with ^G)
(gandalf@localhost)1> kvs:start().
true
(gandalf@localhost)2>
%%
$erl -sname bilbo@localhost
Erlang (BEAM) emulator version 5.5.4 [source]
[async-threads:0] [kernel-poll:false]
Eshell V5.5.4 (abort with ^G)
(bilbo@localhost)1>
Which changes the node name to look exactly like the example. Voila! The example works as expected:
(bilbo@localhost)1> rpc:call(gandalf@localhost, kvs,store, [weather, fine]).
true
(bilbo@localhost)2> rpc:call(gandalf@localhost, kvs, lookup, [weather]).
{ok,fine}
$erl -sname gandalf@localhost
Erlang (BEAM) emulator version 5.5.4 [source]
[async-threads:0] [kernel-poll:false]
Eshell V5.5.4 (abort with ^G)
(gandalf@localhost)1> kvs:start().
true
(gandalf@localhost)2>
%%
$erl -sname bilbo@localhost
Erlang (BEAM) emulator version 5.5.4 [source]
[async-threads:0] [kernel-poll:false]
Eshell V5.5.4 (abort with ^G)
(bilbo@localhost)1>
Which changes the node name to look exactly like the example. Voila! The example works as expected:
(bilbo@localhost)1> rpc:call(gandalf@localhost, kvs,store, [weather, fine]).
true
(bilbo@localhost)2> rpc:call(gandalf@localhost, kvs, lookup, [weather]).
{ok,fine}