{error, timeout}

stewart mackenzie setori88 at gmail.com
Fri Oct 9 03:13:20 EDT 2009


Hi all, I would love it if you guys could give me a hand at this.

this is my config file

{cluster_name, "default"}.
{ring_state_dir, "priv/ringstate"}.
%% note: make sure you configure your operating system limits for maximum
%% open files (using ulimit/sysctl) when creating larger ring sizes.
{ring_creation_size, 16}.
{gossip_interval, 60000}.
{doorbell_port, 9000}.
{storage_backend, riak_ets_backend}.
%{riak_dets_backend_root, "priv/store/dets"}.
{riak_cookie, riak_demo_cookie}.
{riak_heart_command, "(cd /workspace/riak; ./start-restart.sh
 /workspace/riak/config/riak-demo.erlenv)"}.
{riak_nodename, riakdemo}.
{riak_hostname, "127.0.0.1"}.
{riak_web_ip, "127.0.0.1"}.
{riak_web_port, 8098}.
{jiak_name, "jiak"}.

TEST
------------------------------------------
$ ./riak_demo.escript  config/riak-demo.erlenv
Attempting to connect to 'riakdemo at 127.0.0.1' with cookie
riak_demo_cookie...
Connected successfully
Looking for pre-existing object at {<<"riak_demo">>, <<"demo">>}...
  Pre-existing object found, modifying
Storing object with new value...
  Written successfully
Fetching object at {<<"riak_demo">>, <<"demo">>}...
  Fetched successfully
  Object contained correct value
SUCCESS

ERLANG SESSION
--------------------------------------------
started with this command

$ erl -name riaktest at 127.0.0.1 -pa c:/workspace/riak/ebin

(riaktest at 127.0.0.1)3> {ok, C} = riak:local_client().
{ok,{riak_client,'riaktest at 127.0.0.1',
                 <<"20091009070107-riaktest at 127.0.0.1-riaktest
@127.0.0.1-187000"
>>}}
(riaktest at 127.0.0.1)4> Object = riak_object:new(<<"artist">>,<<"REM">>,
[{albums, 2}, {members,[<<"Buck">>,<<"Stipe">>,<<"Mills">>,<<"Berry">>]}]).
{r_object,<<"artist">>,<<"REM">>,
          [{r_content,{dict,0,16,16,8,80,48,
                            {[],[],[],[],[],[],[],[],[],[],[],[],[],[],...},
                            {{[],[],[],[],[],[],[],[],[],[],[],[],...}}},
                      [{albums,2},
                       {members,[<<"Buck">>,<<"Stipe">>,<<"Mills">>,
                                 <<"Berry">>]}]}],
          [],
          {dict,1,16,16,8,80,48,
                {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],...},
                {{[],[],[],[],[],[],[],[],[],[],[],[],[],...}}},
          undefined}
(riaktest at 127.0.0.1)5> ok = C:put(Object, 2).
** exception error: no match of right hand side value {error,timeout}
(riaktest at 127.0.0.1)6>

why on earth is it timing out?

Kind regards
Stewart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20091009/dbeda8e5/attachment-0002.html>


More information about the riak-users mailing list