Hi Luke,

Here is some part of source code:-

val bucketName = "abc-client" client.createBucket(bucketName).execute()
val abc = new ABC(id, "abc")
val bucket = client.fetchBucket(bucketName).execute()
bucket.store(abc).execute()


I don't think that I am using Riak Search. From the error log, it
looks like there is a precommit hook defined in the properties for
abc-client. Because  I also tried to  uninstall and install riak two
times, but got same problem.



Is there any way to remove precommit hook?

On Sat, Oct 11, 2014 at 4:28 AM, Luke Bakken <lbak...@basho.com> wrote:
> Ayush,
>
> Are you using Riak Search? If so, are you using legacy search (1.0) or
> Yokozuna (2.0) ?
>
> Could you please execute the store operation to the abc-client bucket
> using curl instead of the Java client?
> --
> Luke Bakken
> Engineer / CSE
> lbak...@basho.com
>
>
> On Fri, Oct 10, 2014 at 10:25 AM, ayush mishra
> <ayushmishra2...@gmail.com> wrote:
>> I have installed riak 2.0.1 on my machine. I am trying to store an
>> object with a key in riak bucket. But I am stuck in a weird problem.
>>
>> My actual bucket name is "abc-client".
>>
>> When I try to save data in this bucket, I am getting below error on console:
>>
>> [error] ! step error
>> [error]   RiakRetryFailedException:
>> com.basho.riak.client.http.response.RiakResponseRuntimeException:
>> <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]     {error,badarg,
>> [error]         [{erlang,iolist_to_binary,
>> [error]
>> [{hook_crashed,{riak_search_kv_hook,precommit,error,badarg}}],
>> [error]              []},
>> [error]
>> {wrq,append_to_response_body,2,[{file,"src/wrq.erl"},{line,215}]},
>> [error]          {riak_kv_wm_object,handle_common_error,3,
>> [error]              [{file,"src/riak_kv_wm_object.erl"},{line,1144}]},
>> [error]          {webmachine_resource,resource_call,3,
>> [error]              [{file,"src/webmachine_resource.erl"},{line,186}]},
>> [error]          {webmachine_resource,do,3,
>> [error]              [{file,"src/webmachine_resource.erl"},{line,142}]},
>> [error]          {webmachine_decision_core,resource_call,1,
>> [error]              [{file,"src/webmachine_decision_core.erl"},{line,48}]},
>> [error]          {webmachine_decision_core,accept_helper,1,
>> [error]              [{file,"src/webmachine_decision_core.erl"},{line,612}]},
>> [error]          {webmachine_decision_core,decision,1,
>> [error]
>> [{file,"src/webmachine_decision_core.erl"},{line,580}]}]}}</pre><P><HR><ADDRESS>mochiweb+webmachine
>> web server</ADDRESS></body></html> (DefaultRetrier.java:81)
>> [error] 
>> com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:79)
>> [error] 
>> com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:81)
>> [error] 
>> com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:81)
>> [error] 
>> com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:81)
>> [error] 
>> com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:53)
>> [error] 
>> com.basho.riak.client.operations.StoreObject.execute(StoreObject.java:148)
>>
>> But When I change bucket name from "abc-client" to "abc-client1", I am
>> able to store data successfully.
>>
>> Can anyone help me to resolve this? Thanks in advance
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.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