Hi,

I've managed to correct this error of mine, using the correct backend name,
that is, *leveldb_mult* instead of *leveldb*

Now I have another problem: the python client returns no error, the riak
log is also clean.
But I can find the created bucket when I run buckets?buckets=true
Seems to me it isn't being persisted, I'm investigating.

Felipe Esteves

Tecnologia

felipe.este...@b2wdigital.com <seu.em...@b2wdigital.com>



2016-12-15 11:45 GMT-02:00 Felipe Esteves <felipe.este...@b2wdigital.com>:

> Hi,
>
> I'm running some tests with riak-kv official container (riak
> version 2.1.4), to create a leveldb backend bucket-type.
>
> I'm following riak and python riak client documentation, as follow:
>
> Riak conf has:
>
> storage_backend = multi
> multi_backend.bitcask_mult.storage_backend = bitcask
> multi_backend.bitcask_mult.bitcask.data_root = /var/lib/riak/bitcask_mult
> multi_backend.leveldb_mult.storage_backend = leveldb
> multi_backend.leveldb_mult.leveldb.data_root = /var/lib/riak/leveldb_mult
> multi_backend.default = bitcask_mult
>
> After riak start, I run:
> riak-admin bucket-type create leveldb_backend
> '{"props":{"backend":"leveldb"}}'
> riak-admin bucket-type activate leveldb_backend
>
> *riak-admin bucket-type status leveldb_backend*
> *leveldb_backend is active*
>
> *.....*
>
> *backend: <<"leveldb">>*
> *.....*
>
> *active: true*
> *...*
>
> In Python, I run:
> myClient = riak.RiakClient(http_port=8098, protocol='http',
> host='127.0.1.1')
> myBucket = myClient.bucket('foo', bucket_type='leveldb_backend')
> key1 = myBucket.new('barr', data='foobar')
> key1.store()
>
> However, I'm getting this error in riak:
> 2016-12-15 13:13:48.598 [error] <0.1408.0> gen_fsm <0.1408.0> in state
> active terminated with reason: *no case clause matching {riak_kv_*
> *multi_backend,undefined_backend,<<"leveldb">>}* in
> riak_core_vnode:vnode_command/3 line 346
> 2016-12-15 13:13:48.598 [error] <0.1408.0> CRASH REPORT Process <0.1408.0>
> with 2 neighbours exited with reason: no case clause matchin
> g {riak_kv_multi_backend,undefined_backend,<<"leveldb">>} in
> riak_core_vnode:vnode_command/3 line 346 in gen_fsm:terminate/7 line 622
> 2016-12-15 13:13:48.598 [error] <0.165.0> Supervisor riak_core_vnode_sup
> had child undefined started with {riak_core_vnode,start_link,undefined}
> at <0.1408.0> exit with reason no case clause matching
> {riak_kv_multi_backend,undefined_backend,<<"leveldb">>} in
> riak_core_vnode:vnode_command/3 line 346 in context child_terminated
>
> Am I missing some point in this configuration? Seems to me that I've
> followed all the official docs but with no success.
>
>
> Felipe Esteves
>
> Tecnologia
>
> felipe.este...@b2wdigital.com <seu.em...@b2wdigital.com>
>
>
>

-- 

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to