I am actually getting the similar errors on RC2, but with
bitcask_backend (default):
/etc/riak/app.config:
...
{storage_backend, riak_kv_bitcask_backend},
...
riak:~# curl http://127.0.0.1:8091/buckets/test/index/num_int/1
<html><head><title>500 Internal Server
Error</title></head><body><h1>Internal Server Error</h1>The server
encountered an error while processing this
request:<br><pre>{error,{indexes_not_supported,riak_kv_bitcask_backend}}</pre><P><HR><ADDRESS>mochiweb+webmachine
web server</ADDRESS></body></html>
I am currently running riak-1.0.0rc2-20-ge0a179e. Am I missing any
config options here to enable the secondary indexes on bitcask?
On Fri, Sep 30, 2011 at 5:04 AM, Artem <[email protected]> wrote:
>> We are pleased to announce the availability of the second release
>> candidate for Riak 1.0.
>
> The RC2 doesn't seem to work with secondary indexes in the multi_backend
> configuration.
> Will secondary indexes be supported in 1.0 multi_backend?
>
> --- /etc/riak/app.config -------
>
> {storage_backend, riak_kv_multi_backend},
> {multi_backend_default, <<"leveldb">>},
> {multi_backend, [
> {<<"leveldb">>, riak_kv_eleveldb_backend, [
> {data_root, "/var/lib/riak/leveldb"}
> ]},
> {<<"bitcask">>, riak_kv_bitcask_backend, [
> {data_root, "/var/lib/riak/bitcask"}
> ]}
> ]},
>
> --- command-line -------
>
> curl -v -X PUT -d 'payload' -H 'X-Riak-Index-num_int: 2'
> http://127.0.0.1:8098/riak/test/doc2
> curl -v http://127.0.0.1:8098/buckets/test/index/num_int/1
>
> --- /var/log/riak/console.log -------
>
> 2011-09-29 22:56:11.556 [error] <0.514.0> gen_fsm <0.514.0> in state
> waiting_results terminated with reason:
> {error,{indexes_not_supported,riak_kv_multi_backend}}
> 2011-09-29 22:56:11.843 [error] <0.514.0> CRASH REPORT Process <0.514.0>
> with 0 neighbours crashed with reason:
> {error,{indexes_not_supported,riak_kv_multi_backend}}
> 2011-09-29 22:56:12.096 [error] <0.323.0> Supervisor riak_kv_index_fsm_sup
> had child undefined started with
> {riak_core_coverage_fsm,start_link,undefined} at <0.514.0> exit with reason
> {error,{indexes_not_supported,riak_kv_multi_backend}} in context
> child_terminated
> 2011-09-29 22:56:12.412 [error] <0.506.0> webmachine error:
> path="/buckets/test/index/num_int/1"
> {error,{error,{indexes_not_supported,riak_kv_multi_backend}}}
>
>
>
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com