I ran the sample code you sent over on my local machine and it ran without
error. I did have to enable riak search on an individual bucket by setting
bucket properties, but you can see the changes I made here:
http://clientresources.brentozar.com.s3.amazonaws.com/CITest.zip

You may not get the search results that you want from your JSON document
because it doesn't conform to the default Riak Search schema -
http://docs.basho.com/riak/latest/cookbooks/Riak-Search---Schema/#The-Default-Schema

---
Jeremiah Peschka - Founder, Brent Ozar Unlimited
MCITP: SQL Server 2008, MVP
Cloudera Certified Developer for Apache Hadoop


On Wed, Mar 13, 2013 at 5:32 PM, Kevin Burton <[email protected]>wrote:

> Instead of using a binary file I tried a file that contains serialized
> JSON data. I am getting pretty much the same error:****
>
> ** **
>
> <html><head><title>500 Internal Server
> Error</title></head><body><h1>Internal Se****
>
> rver Error</h1>The server encountered an error while processing this
> request:<br****
>
> ><pre>{error,****
>
>     {error,badarg,****
>
>         [{erlang,iolist_to_binary,****
>
>              [{hook_crashed,{riak_search_kv_hook,precommit,error,badarg}}],
> ****
>
>              []},****
>
>          {wrq,append_to_response_body,2,[{file,"src/wrq.erl"},{line,205}]},
> ****
>
>          {riak_kv_wm_object,handle_common_error,3,****
>
>              [{file,"src/riak_kv_wm_object.erl"},{line,998}]},****
>
>          {webmachine_resource,resource_call,3,****
>
>              [{file,"src/webmachine_resource.erl"},{line,183}]},****
>
>          {webmachine_resource,do,3,****
>
>              [{file,"src/webmachine_resource.erl"},{line,141}]},****
>
>          {webmachine_decision_core,resource_call,1,****
>
>              [{file,"src/webmachine_decision_core.erl"},{line,48}]},****
>
>          {webmachine_decision_core,accept_helper,0,****
>
>              [{file,"src/webmachine_decision_core.erl"},{line,606}]},****
>
>          {webmachine_decision_core,decision,1,****
>
>
> [{file,"src/webmachine_decision_core.erl"},{line,577}]}]}}</pre><P>****
>
> <HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html>****
>
> ** **
>
> From****
>
> ** **
>
> curl -XPUT http://devUBuntu01:8098/riak/buyseasons-orders/1 -H
> "Content-type:application/json" --data-binary @test.json****
>
> ** **
>
> So given this error any suggestions as to the meaning?****
>
> ** **
>
> I can put the JSON file on dropbox or someother media if it is needed. ***
> *
>
> ** **
>
> Thank you.****
>
> ** **
>
> *From:* Kevin Burton [mailto:[email protected]]
> *Sent:* Wednesday, March 13, 2013 9:28 AM
> *To:* 'Jeremiah Peschka'; 'riak-users'
> *Subject:* RE: Error interpretation****
>
> ** **
>
> So the question remains in my mind why****
>
> ** **
>
> curl -XPUT http://devUbuntu01:8098/riak/images/1.jpg -H "Content-type:
> image/jpeg" --data-binary @test.jpg****
>
> ** **
>
> and the corresponding read****
>
> ** **
>
> curl -v http://devUbuntu01:8098/riak/images/1.jpg >test-read.jpg****
>
> ** **
>
> work without error but the CI call to put fails? How are these different?*
> ***
>
> ** **
>
> ** **
>
> *From:* riak-users 
> [mailto:[email protected]<[email protected]>]
> *On Behalf Of *Jeremiah Peschka
> *Sent:* Tuesday, March 12, 2013 8:35 PM
>
> *To:* riak-users
> *Subject:* Re: Error interpretation****
>
> ** **
>
> Default leveldb config is (when built using `make devrel`): ****
>
> ** **
>
>  %% eLevelDB Config****
>
>  {eleveldb, [****
>
>              {data_root, "./data/leveldb"}****
>
>             ]},****
>
> ** **
>
> Drop everything but the data_root. Also: simplify your set up. You're
> running into timeout errors in a networked environment. Test your
> functionality on a local cluster (either 1 node or a devrel setup with 4
> nodes). Validate your logic and functionality there.****
>
> ** **
>
> I wish I could promise that I can help out at all, but I just got back
> from 12 days out of the country and I'm booked solid for the next two
> weeks. In short - my responses will be hit or miss at best.****
>
> ** **
>
> Good luck and godspeed.****
>
>
> ****
>
> ---****
>
> Jeremiah Peschka - Founder, Brent Ozar Unlimited****
>
> MCITP: SQL Server 2008, MVP****
>
> Cloudera Certified Developer for Apache Hadoop****
>
> ** **
>
> ** **
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to