Hi there, I tried getting the Riak 2.0.0pre20 example to run.
I’m running on Mac OS X, downloaded the source package, did a make rel and started Riak with all default values. After set, I created the new bucket-type: riak-admin bucket-type create set_bucket '{"props":{"datatype":"set"}}’ and activated it: riak-admin bucket-type activate set_bucket Running riak-admin bucket-type status set_bucket results in: set_bucket is active young_vclock: 20 w: quorum small_vclock: 50 rw: quorum r: quorum pw: 0 precommit: [] pr: 0 postcommit: [] old_vclock: 86400 notfound_ok: true n_val: 3 linkfun: {modfun,riak_kv_wm_link_walker,mapreduce_linkfun} last_write_wins: false dw: quorum chash_keyfun: {riak_core_util,chash_std_keyfun} big_vclock: 50 basic_quorum: false allow_mult: true datatype: set active: true claimant: 'riak@127.0.0.1’ But when I try to insert data with: curl -XPOST \ > -H "Content-Type: application/json" \ > -d '{"add_all":["Toronto", "Montreal"]}' \ > http://localhost:8098/types/set_bucket/buckets/travel/datatypes/cities I get the following error back: <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, {error,undef, [{application,get_env,[riak_dt,binary_compression,true],[]}, {riak_dt_orswot,to_binary,1, [{file,"src/riak_dt_orswot.erl"},{line,331}]}, {riak_kv_crdt,to_binary,1,[{file,"src/riak_kv_crdt.erl"},{line,400}]}, {riak_kv_crdt,new,3,[{file,"src/riak_kv_crdt.erl"},{line,390}]}, {riak_kv_wm_crdt,process_post,2, [{file,"src/riak_kv_wm_crdt.erl"},{line,367}]}, {webmachine_resource,resource_call,3, [{file,"src/webmachine_resource.erl"},{line,186}]}, {webmachine_resource,do,3, [{file,"src/webmachine_resource.erl"},{line,142}]}, {webmachine_decision_core,resource_call,1, [{file,"src/webmachine_decision_core.erl"},{line,48}]}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html> Any hints what I’m missing? Thanks Michael
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com