Re: Multiple Index Queries using Riak and Python

2012-02-27 Thread Sreejith K
Hi Mark, I find this solution extremely useful in our PaaS solution where we needed to support APIs similar to Google App Engine. Performance is largely dependent on the number of key inputs to the MapReduce phase. But it is quite fast when you want to get a few number of records (~1000) from a la

Re: Issues with MapReduce in Riak 1.1.0

2012-02-27 Thread Jon Meredith
Yes, a mixed cluster of 1.0.x and 1.1.0 would be affected for the first and third issues. If you aren't using javascript MapReduce you won't be affected by the second issue on either. For all interested parties, we've made progress on the first two issues (mixed clusters and javascript leak) and h

Re: Python Client Thread Safe?

2012-02-27 Thread Jim Adler
Greg, Thanks for the comments. I'll do some tests along the lines of what you suggest. FWIW, I'm using Riak 1.0.3. Jim On 2/27/12 7:46 PM, "Greg Stein" wrote: >] >X-pstn-settings: 3 (1.:0.1000) s cv GT3 gt2 gt1 r p m c >X-pstn-addresses: from [db-null] > >To clarify my thread-sharing co

Re: Python Client Thread Safe?

2012-02-27 Thread Greg Stein
To clarify my thread-sharing comments: those are with respect to the unreleased client. And I've checked: the Bucket objects are sharable, too. Obviously, not if multiple threads are calling competing .set_r() or somesuch on the client or bucket. The short answer is share Client and Bucket objects

Re: Python Client Thread Safe?

2012-02-27 Thread Greg Stein
IIRC, that error was seen when connecting to Riak 0.14.0. What version of Riak are you connecting to? I might also suggest using the current, unreleased Python client from the master branch on GitHub. It has much better support for threads and persistent connections. Just don't use variant client_

Riak Recap for February 24 - 26

2012-02-27 Thread Mark Phillips
Evening, Morning, Afternoon to All Huge Recap for today: new production users, blog posts, new code, webinars, and more. Enjoy. Mark Community Manager Basho Technologies wiki.basho.com/Riak.html twitter.com/pharkmillups - Riak Recap for February 24 - 26

Re: Use hostname instead of ip in vm.args -name?

2012-02-27 Thread Jeremiah Peschka
I believe this has been covered earlier on the list (you can search the archives on markmail). Short answer: yes, but you need valid DNS. If you don't have DNS, you can put the other node host names in your hosts file. The vm.args -names parameter should be in the format nodename@ip_address/FQD

Use hostname instead of ip in vm.args -name?

2012-02-27 Thread Eric Fong
Hi I am trying to use hostname instead of ip in vm.args -name. I can setup a cluster using hostname in riak control. But I found that bin/riak-admin status always return Node is not running! even I can access the node via http / https Is something wrong in my setting? I am using Riak 1.1.0 and

RE: Errors Building Riak from Source

2012-02-27 Thread Alex Katebi
The problem was my Erlang installation. When I used the kerl script, building the Riak worked fine. curl -O https://raw.github.com/spawngrid/kerl/master/kerl; chmod a+x kerl ./kerl build R14B03 r14b03 sudo ./kerl install r14b03 /opt/erlang/r14b03 . /opt/erlang/r14b03/activate Thanks! __

Errors Building Riak from Source

2012-02-27 Thread Alex Katebi
Hello, I did a git clone then checked out the 1.1 branch. Building Riak from source and I keep getting this error message: akatebi@core16:~/riak$ make rel ./rebar get-deps Uncaught error in rebar_core: {'EXIT', {undef,

Riak Java Client v1.0.4

2012-02-27 Thread Brian Roach
Greetings Riak Users! We are pleased to announce the release of the Riak Java Client v1.0.4. Additionally we are now publishing the Javadoc online. This release includes bug fixes as well as new functionality. New features include: shutdown() method in the IRiakClient interface and underlyin

Re: Search and Erlang client

2012-02-27 Thread Dan Reverri
Hi Doug, The Erlang client will use whatever content-type is set by the user. Can you provide an example of how you are creating your objects? The following worked for me: {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). O = riakc_obj:new(<<"bucket">>, <<"key">>, <<"{\"foo\":\"bar\"}">>

Re: Multiple Index Queries using Riak and Python

2012-02-27 Thread Mark Phillips
You should have sent around the blog post, too. :) http://foobarnbaz.com/2012/02/25/multi-index-queries-in-riak/ Out of curiosity, are you using this in prod? Or is it just something you whipped up to see if it was feasible? Very cool and useful regardless. Thanks for sharing. Mark On Fri, Feb

resolving siblings

2012-02-27 Thread Russell Brown
Hi, I'm preparing a talk on conflict/sibling resolution, and I was hoping to gather some real world examples. Most people know the shopping cart example from the dynamo paper, but not *all* Riak apps are shopping carts. If you can provide any information about how you resolve siblings, and what

Re: Adding a fourth node makes cluster slower in basho bench

2012-02-27 Thread Ryan Zezeski
John-Paul, Do you mind posting your config files to go with each run? Some questions that come to mind: 1. Did you start fresh for each run? (i.e. no data) 2. After adding the 4th node did you add it's IP to the bench config? 3. Do you have any iostat numbers to go with these runs? (both for g

Re: Python Client Thread Safe?

2012-02-27 Thread Jim Adler
Hmm, I do have multiple clients -- one per thread. Jim On 2/27/12 10:47 AM, "Armon Dadgar" wrote: >Hey Jim, > >The PBC client does not share any state between clients, >but it is not safe to use a single client with multiple threads, >since the underlying socket will be shared. > >If you have m

Re: Search and Erlang client

2012-02-27 Thread Doug Selph
Hi Dan, Well, I'm stumped. When creating the object, I pass "application/json" as content-type, but all my objects have content-type set to "application/octet-stream" Does the erlang client save everything as a binary? Thanks, Doug On Mon, Feb 27, 2012 at 12:10 PM, Dan Reverri wrote: > Hi Do

Re: Python Client Thread Safe?

2012-02-27 Thread Armon Dadgar
Hey Jim, The PBC client does not share any state between clients, but it is not safe to use a single client with multiple threads, since the underlying socket will be shared. If you have multiple threads, just make sure to use multiple clients. Best Regards, Armon Dadgar > > Message: 1 > Date

Re: Search and Erlang client

2012-02-27 Thread Dan Reverri
Hi Doug, Can you confirm the "Content-Type" header is set to "application/json" by reading the JSON objects you stored? Can you share an example JSON object as well as an example query you are running with "search-cmd"? Thank you, Dan Daniel Reverri Developer Advocate Basho Technologies, Inc. d

RE: riak install error: R15B does not match required regex R13B04|R14

2012-02-27 Thread Chenini, Mohamed
Hi Jared, I found "{require_otp_vsn, ...}" in those 3 deps and added" |R15" /home/u1c332/riak-1.1.0/deps/cluster_info /home/u1c332/riak-1.1.0/deps/riak_kv /home/u1c332/riak-1.1.0/deps/riak_search But the compile is giving now this error ~/riak-1.1.0> make rel ==> erlang_js (c