Re: riak.RiakError: 'this transport is not available (no protobuf)'

2012-08-28 Thread Sean Cribbs
David, Make sure you fetch the client's dependencies, including riak_pb (and transitively protobuf). That error occurs when the riak_pb library is not available. On Wed, Aug 29, 2012 at 5:34 AM, David Montgomery wrote: > What does this error me and how do I resolve? I am using the latest versio

Re: riak-erlang-client issue with Riak EE 1.2

2012-08-28 Thread Sean Cribbs
Julian, I might also add that those header files (like riak_search_pb.hrl) are not checked in because they are generated when the .proto files are compiled. It should be sufficient to add riakc as your rebar dependency. In the meantime we'll get those docs updated on Github pages. On Tue, Aug 28

riak.RiakError: 'this transport is not available (no protobuf)'

2012-08-28 Thread David Montgomery
What does this error me and how do I resolve? I am using the latest version of riak for ubunut and the riak python api. File "workerServer.py", line 57, in client = riak.RiakClient(host='riak.hk.test.com',port=8087,transport_class=riak.transports.pbc.RiakPbcTransport) File "/usr/local/l

Re: riak-erlang-client issue with Riak EE 1.2

2012-08-28 Thread Dave Parfitt
Hello Julian - Map-reduce is still available, it's just not what riakc_pb_socket:search/* uses under the hood anymore. Both map/reduce and Riak search functionality are implemented in the client using Protocol Buffers now. The Map/Reduce functions are available here: https://github.com/basho/

Re: riak-erlang-client issue with Riak EE 1.2

2012-08-28 Thread Julian
Hi Dave, I don't see documentation up on basho.github.com for client 1.3.0, and I don't see some of those include files referenced from riak_pb (ex riak_search_pb.hrl) in your repo, so I'll assume those are meant to be internal. But how am I supposed to know how to migrate to the new parameters? I

Re: rik loading taking huge time?any suggestion for betterment

2012-08-28 Thread Mike Oxford
Oh, also, your logging is going to cause a HUGE performance hit, especially if that machine is one of the Riak nodes. Too much disk and IO thrash. -mox On Tue, Aug 28, 2012 at 10:56 AM, Mike Oxford wrote: > Use the https://github.com/basho/riak-erlang-client directly, instead of > calling os:c

Re: rik loading taking huge time?any suggestion for betterment

2012-08-28 Thread Mike Oxford
Use the https://github.com/basho/riak-erlang-client directly, instead of calling os:cmd and pushing through CURL. You can also parallelize it at that time, because right now you're doing 25million os:cmd calls and making 25million curl calls. Open up a pool of connections (or even just N and round

Re: Questions around Riak "these days"

2012-08-28 Thread Mike Oxford
On Mon, Aug 27, 2012 at 10:56 PM, Mark Phillips wrote: > Hi mox, > > Welcome back. :) > > Thanks, good to be back. Been an odd run lately. > As it stands right now, no. Still plain old boring Riak. If you want > custom resolution logic you'll still be doing that client-side with > something li

Re: Riak Enterprise 1.2 on Debian 6

2012-08-28 Thread Bip Thelin
Thanks man, we have it running on 1.2 in dev with the ubuntu packages and plan to roll it out in staging soon. All our servera run sudo so we're good. Didn't even notice that dep. -Bip Thelin On 28 aug 2012, at 18:39, Jared Morrow wrote: Bip, In testing debian for another use, I went ahead an

Re: Riak Enterprise 1.2 on Debian 6

2012-08-28 Thread Jared Morrow
Bip, In testing debian for another use, I went ahead and tested the Ubuntu packages on Debian Squeeze. Our Ubuntu "natty" package installs cleanly and works on Debian, with a needed dependency on 'sudo' which is not installed by default on Debian. Thanks, Jared On Thu, Aug 9, 2012 at 2:39 AM, B

Re: Emulating composite index queries with secondary indexes and key filters

2012-08-28 Thread Olav Frengstad
Looking at riak_kv_mapred_json it seems to be the case that you can only do key filter on entire buckets. On the other hand one can still use the riak_kv_mapred_filters, even though it's ugly constructing all the filter manually instead of matching binary patterns: {ok, Pid} = riakc_pb_socket:sta

Re: Emulating composite index queries with secondary indexes and key filters

2012-08-28 Thread Jeremiah Peschka
As best as I can recall, you can't key filter on 2i. You can, however, perform range filtering. You could query where the 2i key is between 20110101T00:00:00Z|a|a and 20110201T00:00:00Z|zzz|zzz Please forgive any typos. I'm using a phone. On Tuesday, August 28, 2012, Olav Frengstad wrote: > Hey,

Emulating composite index queries with secondary indexes and key filters

2012-08-28 Thread Olav Frengstad
Hey, I'm looking to use riak to store time series. So naturaly i'm in the processes of validating all possible methods this query. A object has a id, origin, timestamp and type. The query in question is to select all object within a time range that originated from "origin" and has a certain "type"

Re: Schema design - version history and time travel

2012-08-28 Thread Patrik Sundberg
On Tue, Aug 28, 2012 at 7:11 AM, Mark Phillips wrote: > Hi Patrik, > > Sorry for the late response here. > > On Fri, Aug 17, 2012 at 9:37 AM, Patrik Sundberg > wrote: > > Hi, > > > > I'll simplify the case to something easier to follow. The typical > question I > > have is: find piece of data X

Re: riak-search, set schema for a bucket

2012-08-28 Thread Sean Cribbs
Hello, You can use the `search-cmd set-schema ` command to set the schema for your bucket. On Tue, Aug 28, 2012 at 11:28 AM, darkdarkfruit wrote: > > Any one know how to set riak-search default-schema for a bucket? > When I enabled riak-search in a bucket, it automatically analyzes my

riak-search, set schema for a bucket

2012-08-28 Thread darkdarkfruit
Any one know how to set riak-search default-schema for a bucket? When I enabled riak-search in a bucket, it automatically analyzes my json doc when writing to riak, but I just want some fields to be analyzed. (I am using riak-python-client). I checked the wiki :http://wiki.basho.com/R