Re: Random timeouts on Riak

2014-12-29 Thread Russell Brown
Alrighty. On 29 Dec 2014, at 12:29, Russell Brown wrote: > Hi Jason, > > I opened https://github.com/basho/riak_kv/issues/1069. Feel free to add any > information to it that you think is pertinent. > > On 29 Dec 2014, at 12:26, Jason Ryan wrote: > >> No - those s

Re: Random timeouts on Riak

2014-12-30 Thread Russell Brown
Please can you let me know if you’re using a typed or default bucket? Please can you let me know what you’re DVV setting is? On 29 Dec 2014, at 12:27, Jason Ryan wrote: > Also we noticed these warnings - should we change the environment to make > these on each node? > > 2014-12-29 11:32:14.56

Re: Random timeouts on Riak

2014-12-30 Thread Russell Brown
t; > email: jason.r...@trustev.com > skype: jason_j_ryan > web: www.trustev.com > > Trustev Ltd, 2100 Cork Airport Business Park, Cork, Ireland. > > On 30 December 2014 at 08:49, Russell Brown wrote: > Please can you let me know if you’re using a typed or default bucket? >

Re: CRDT-map usage in erlang mapreduce via HTTP

2015-01-06 Thread Russell Brown
Hi Cezary, The keys in a map are pairs, {FieldName, FieldType}, and when map reducing they haven’t been through the API layer to make the module names friendly, so rather than {my_name, set} you have {may_name, riak_dt_orswot}. For example M = riak_kv_crdt:map_value(V). [{{<<"m1">>,ria

Re: adding nodes to cluster

2015-01-20 Thread Russell Brown
I’ll open a ticket for it. We changed the internal structure of both Maps and Sets, and tested that they were backwards compatible, but clearly missed something. On 20 Jan 2015, at 13:54, Alexander Popov wrote: > Upgraded riak 2.0.2-> 2.0.4 > trying to add nodes to cluster( was single node )

Re: adding nodes to cluster

2015-01-20 Thread Russell Brown
FYI https://github.com/basho/riak/issues/667 I’ll get to work on it at once, we might be able to hit the 2.0.5 build date at the end of the week. On 20 Jan 2015, at 14:04, Russell Brown wrote: > I’ll open a ticket for it. We changed the internal structure of both Maps and > Sets, and

Basho Product Alert: Serious Bug with Maps in upgrade to 2.0.4

2015-01-21 Thread Russell Brown
Hi, Basho Engineering has uncovered a bug in the new Map and Set data structures [1] in Riak version 2.0.4. This code incorrectly handles a format upgrade resulting in the inability to read maps written by pre-2.0.4 releases on a 2.0.4 node. The issue[2] manifests as a crash message in the log,

Re: adding nodes to cluster

2015-01-21 Thread Russell Brown
Popov wrote: > Thanks. > > On Tue, Jan 20, 2015 at 5:07 PM, Russell Brown wrote: > FYI https://github.com/basho/riak/issues/667 > > I’ll get to work on it at once, we might be able to hit the 2.0.5 build date > at the end of the week. > > On 20 Jan 2015, at

Re: adding nodes to cluster

2015-01-29 Thread Russell Brown
import) to clean setup. > so i can experiment with old node. > It have not source installation, from package. > I will try compile it tomorrow. > > On Wed, Jan 21, 2015 at 9:01 PM, Russell Brown wrote: > There’s a branch of riak_dt here https://github.com/basho/riak_dt/pu

Re: Reg: Riak creatig object

2015-01-31 Thread Russell Brown
Hi, 1. That Value (Val1) needs to be a binary. 2. Since you started the rick_pb_socket, it crashed, so there is no longer a process, you need to f(Pid), {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). again Hope that helps Russell > On 31 Jan 2015, at 11:07, Babu Sunil wrote: >

Re: Limiting the number of entries in a set

2015-01-31 Thread Russell Brown
Hi Shawn, If I can get in IRC later I will. On 31 Jan 2015, at 18:11, Shawn Debnath wrote: > Good morning, > > Wondering if there is a better way to do truncation of a set if entries > exceed a certain threshold. I am trying to create a canonical timeline for > every user in our system, set

Re: Single node cluster

2015-02-03 Thread Russell Brown
On 3 Feb 2015 19:12, Miroslav Urbanek wrote: > > Hello, > > I know it is recommended to have at least 5 nodes in a Riak > cluster. However, for development purposes, I want to set up a single > node cluster and achieve its maximum performance. I use buckets > without siblings and Riak Search.

Re: Is there a way to efficiently do a coverage call to vnodes local to the given host?

2015-02-13 Thread Russell Brown
Not to be rude, because I think this is a good question and warrants an answer: but you might have more luck on the riak-core list http://lists.basho.com/mailman/listinfo/riak-core_lists.basho.com Cheers Russell On 13 Feb 2015, at 13:55, Roman Shestakov wrote: > Hello, > > I am wandering if

Re: [Announcement] Riak 2.1 - Features & Release Notes

2015-04-21 Thread Russell Brown
I just want to add this link for those who are interested in that kv679 fix. https://gist.github.com/russelldb/eec09409528974fb4321 There are some operational nuances that need to be considered, and the release notes don’t link to the docs as they don’t seem to exist yet. Hopefully that gist ca

Re: How to create a flag type (context_required) using riak-erlang-client/riakc_flag

2015-08-06 Thread Russell Brown
Hi, It’s a long story. The short answer is: you can’t with that client, it has strong opinions so the best thing to do is this: have your app interpret the absence of a flag as false (the bottom/default value for a flag.) The long story: the semantic for the flag is “observed remove” or “add-wi

Re: Default values vs non-existing keys for CRDTs

2015-08-20 Thread Russell Brown
It’s a tricky one Timur. CRDTs are based on Join Semi-Lattices, and they have the concept of a bottom value. That is what you are seeing. Implicitly all keys exist at the bottom value until you operate on them. Since you cannot do a compare-and-set operation with a counter anyway (that is you ca

Re: Riak Java Client

2011-02-19 Thread Russell Brown
Short answer -- we're working on it and would love your input. :) > > -- > Omnem crede diem tibi diluxisse supremum. > > ___ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.bas

Re: Riak Java Client

2011-02-20 Thread Russell Brown
Sorry to self-reply...I've been reading and have a short term answer to your 3rd point, please see inline below. However I do think it could be baked into the API more clearly. On 19 Feb 2011, at 18:29, Russell Brown wrote: > > On 18 Feb 2011, at 23:20, Wilson MacGyver wro

Re: Java HTTP Client running out of FD's

2011-02-24 Thread Russell Brown
Hi Abhishek, On Thu, 2011-02-24 at 16:05 +0530, Abhishek Kona wrote: > Hi > > In our tests with RIAK the Java HTTP Client is running out of file > descriptors (currently 1024). > The test runs with 64 threads. > > Has this behavior been observed by anyone before? > > Any insights would be help

Re: Java HTTP Client running out of FD's

2011-02-24 Thread Russell Brown
On Thu, 2011-02-24 at 17:58 +0530, Abhishek Kona wrote: > Hi > Thanks for the quick reply. > On 24/02/11 5:03 PM, Russell Brown wrote: > > Hi Abhishek, > > > > On Thu, 2011-02-24 at 16:05 +0530, Abhishek Kona wrote: > >> Hi > >> > >> In our

Re: Java HTTP Client running out of FD's

2011-02-24 Thread Russell Brown
Thanks for getting back to me. On Thu, 2011-02-24 at 21:13 +0530, Abhishek Kona wrote: > > I'm wondering if you're sharing the same RiakClient between all threads > > or if each thread creates a RiakClient? > > > Each thread has a RiakClient. RiakClient uses Apache HttpClient's MultiThreadedConn

Re: Java HTTP Client running out of FD's

2011-02-24 Thread Russell Brown
On 24 Feb 2011, at 17:20, Abhishek Kona wrote: >>> Each thread has a RiakClient. >> RiakClient uses Apache HttpClient's MultiThreadedConnectionManager so >> you could create a single RiakClient and share it among your threads >> instead. > Could you provide me an example (sample code / test

Re: Java HTTP Client running out of FD's

2011-02-25 Thread Russell Brown
On Fri, 2011-02-25 at 09:58 +0530, Abhishek Kona wrote: > Also I am not clear about the RiakClient's thread safety. If I share > the RiakClient should the client code maintain locks on it. > Well technically no, it is not strictly thread safe (it retains a reference to the mutable RiakConfig it

Re: tuning riak for 100s of concurrent connections

2011-02-26 Thread Russell Brown
On 25 Feb 2011, at 18:31, Wilson MacGyver wrote: > Another possibility that comes to mind to avoid the setup cost is to > do connection pool > of some sorts. > > Does any of the riak client lib supports connection pooling? Late to this party, sorry. The Java REST client makes use of Apache Htt

Re: Purge in RIAK

2011-03-01 Thread Russell Brown
Hi, On Tue, 2011-03-01 at 18:02 +0530, Abhishek Kona wrote: > Hi folks > > What is the best way to clear a Riak bucket of all key, values after > running a test? > I am currently using the Java HTTP API. You can list the keys for the bucket and call delete for each. Or if you put the keys (and k

Re: problem with RiakClient streamBucket method

2011-03-04 Thread Russell Brown
Hi Santosh, On Fri, 2011-03-04 at 12:46 +0530, santhosh venkat wrote: > Hi , > streamBucket method of RiakClient throws this exception when i > tried using it . > > Exception in thread "main" java.lang.NoSuchMethodError: > org.json.JSONTokener.end() > I used it exactly in the same way as

Re: Java - Client to a cluster of nodes

2011-03-08 Thread Russell Brown
Hi, On Tue, 2011-03-08 at 19:24 +0530, Abhishek Kona wrote: > Hi, > > Is it possible to create a client to cluster of nodes instead of a > single node in the Riak Java API. > RiakClient riak = new RiakClient(config); > > > In the documentation, I have not found any method where I can specify >

Re: Putting Specific Bucket/Key Combination Gives Timeout

2011-03-14 Thread Russell Brown
Another approach is to generate a "random" bucket name at the start of your test and use that throughout the test , you can still delete the contents at the end of the test but the race condition isn't a problem for the next run (unless your random bucket name isn't very random). I use an UUID i

Re: riak java client review (was Re: Riak Recap for March 14 - 15)

2011-03-17 Thread Russell Brown
On 17 Mar 2011, at 12:30, Jon Brisbin wrote: > > On Mar 16, 2011, at 6:39 PM, Mark Phillips wrote: > >> 3) Mark Wolfe put together some thoughtful observations about Riak and >> the Java Client. This is a great read. >> >> * Check them out here ---> >> https://github.com/wolfeidau/riak-log4j-a

Re: Riak Recap for March 14 - 15

2011-03-17 Thread Russell Brown
On 17 Mar 2011, at 13:12, Abhishek Kona wrote: > I have started using the riak Client recently. One of the features I miss > (which is present in Voldemort Java Client) is providing a Set of client > nodes and the client performing operations on it (by holding n connections to > each node). I

Re: riak java client review (was Re: Riak Recap for March 14 - 15)

2011-03-17 Thread Russell Brown
balancing is a problem in its own right. At the moment I'd say it is only a tentative yes for some future version. Of course a barrage of +1s would encourage a re-think. > -Abhishek Kona > > On 17/03/11 7:17 PM, Russell Brown wrote: >> I'm sorry but I don't unders

Re: abstracted vs. opinionated, object mapping (was: Re: Riak Recap for March 14 - 15)

2011-03-18 Thread Russell Brown
On 18 Mar 2011, at 13:14, Jon Brisbin wrote: > As an aside: I'm wrapping up support for Grails GORM-style object mapping in > the MongoDB Spring Data Document support. We haven't decided how to apply > that mapping strategy to other NoSQL stores yet, but I suspect it'll only be > a matter of a

Java client API

2011-03-23 Thread Russell Brown
Hi, I'm trying to make the Java client easier to use and less tied to underlying implementation so I've started designing a new API. I've put some interfaces up at https://github.com/russelldb/riak-java-client-api I'd really appreciate any comments you may have. My intention is to adapt the ex

Re: Java client API

2011-03-23 Thread Russell Brown
e entry (includin gth VC) to delete an object properly > > bucket.get("krab").delete() > > makes a lot more sense than > >bucket.create("krab").delete() > > WHICH IS GREAT! Because we want people to pass in VC to delete operations >

Re: Java client API

2011-03-23 Thread Russell Brown
Hi Jon, A replied to Kresten, and before I managed you replied more succinctly with a lot of what I had to say. On 23 Mar 2011, at 21:25, Jon Brisbin wrote: > I personally don't like using ambiguous short names. I get that you can > technically distinguish things by package name but using a si

Re: Java client API

2011-03-24 Thread Russell Brown
On 24 Mar 2011, at 06:07, Wilson MacGyver wrote: > On Mar 23, 2011, at 2:25 PM, Jon Brisbin wrote: > >> I personally don't like using ambiguous short names. I get that you can >> technically distinguish things by package name but using a simple name that >> is very common isn't good for code

Re: Java client API

2011-03-24 Thread Russell Brown
On 24 Mar 2011, at 14:15, Sean Cribbs wrote: >>> Likewise, I'd like to suggest RiakDoc >> >> I can see why but I think that might be too specific, not every entry in >> riak is a document (but every document in riak is an entry.) >> > > I understand the desire to have a better name for what y

Re: Java client API

2011-03-25 Thread Russell Brown
Hi, Coda Hale (http://codahale.com) was kind enough to offer some brilliant suggestions based on their use of riak at Yammer (http://yammer.com). I have incorporated his ideas into a new sketch of the API and once again I'd really appreciate it if those of you that have the time could take a loo

Re: Java client API

2011-03-27 Thread Russell Brown
On 27 Mar 2011, at 05:13, Wilson MacGyver wrote: > two questions jump out right away > > 1: how do you fetch linked records using the API? and how do you setup > link for records? I didn't add the m/r or link walking stuff yet, will do soon and post a link, it would be something like it is now

Re: PBC client doesn't stop

2011-03-29 Thread Russell Brown
On 29 Mar 2011, at 03:17, Keith Dreibelbis wrote: > Hi riak-users, > > I'm trying out the java protocol buffers client, and it works fine. However, > it is preventing my process from exiting. When I used the http client from > the same spot in code, the process exited, but switching to PBC ca

Re: Easier to use Java Client

2011-03-29 Thread Russell Brown
On 29 Mar 2011, at 06:28, Rexxe wrote: > Hello, > > I am new to Riak and the mailing list. I started to use Riak using the > spring-data project but found that their API was lacking and had serious > issues with strict typing. It turns out that the Java API they've built is > pretty much be

Re: Easier to use Java Client

2011-03-29 Thread Russell Brown
On 29 Mar 2011, at 10:02, Kresten Krab Thorup wrote: > One thing, which is often missed by newcomers to Riak [I'm not saying you > missed it], is the importance of managing client IDs, and passing the right > vector clocks back to the server. > > { Basho'ers ... please corret me if I'm wrong

Re: PBC client doesn't stop

2011-03-29 Thread Russell Brown
mon thread like Kresten suggested. Daemonize is probably the simplest for this case. Might be able to sneak it into the 0.14.1 release that as coming up soon. > > Keith > > On Tue, Mar 29, 2011 at 12:01 AM, Russell Brown wrote: > On 29 Mar 2011, at 03:17, Keith Dreibelbis wr

Re: Riak Java Client Error

2011-03-30 Thread Russell Brown
Hi Muhammad, The riak java client depends on a couple of external libraries (eg. Apache commons HttpClient, google protobufs). These need to be on your class path when you run your program. The easiest way to do this is to use maven[1]. Using maven means you can simply declare the client as a de

Re: Riak Java Client Error

2011-03-30 Thread Russell Brown
Hi Muhammad, Are you trying to build the riak-java-client from source? It looks like it. I guess those errors you have listed are from within eclipse. So, when maven downloads the internet, I mean the dependencies, it puts them in a special directory on your machine (your local repo). If you hav

Java client pre-release

2011-04-01 Thread Russell Brown
Hi, I'm wondering if anyone with a riak application that uses the Java client wants to put a pre-release of the 0.14.1 client through its paces? If you use maven just point to this repo https://oss.sonatype.org/content/repositories/combashoriak-045/ and update your dependency to 0.14.1 it is j

Re: Where to file bugs?

2011-04-08 Thread Russell Brown
On 9 Apr 2011, at 08:22, Rexxe wrote: > I found a bug in Riak, where do I file it? https://issues.basho.com > > The bug is that if you use the tokenize key filter and pass in an index that > is out of bounds, no error is spit back like Index Out of bounds error. > Instead it just hangs the

Riak Java Client 0.14.1 released

2011-04-11 Thread Russell Brown
Hi, I pushed the 0.14.1 release of the Riak Java Client to maven central today. If you are using the 0.14 Protocol Buffers client you definitely want to upgrade since this release fixes a couple of bugs with that. Just bump your maven dependancy to 0.14.1. There are also a few improvements in t

Re: SV: Slow inserts

2011-04-12 Thread Russell Brown
Oops, and to the list this time. Hi Jens, On 12 Apr 2011, at 12:03, Jens Rantil wrote: > Kresten, > > Thank you for your response. It is good to have a reference. Thank you for > that. > > As of the Python client, I first rewrote the benchmark in Java. It still > seems to be using an http

Re: Extracting data during link walking using PBC

2011-04-27 Thread Russell Brown
Hi OJ! I'm just working through this myself at the moment as I'm trying to make the Java PB client behave the same way as the REST client . On 28 Apr 2011, at 04:23, OJ Reeves wrote: > Hi everyone, > > I'm currently using Riak to store some user/account/oauth information and I > have a need t

Re: Extracting data during link walking using PBC

2011-05-02 Thread Russell Brown
Hi OJ, On 2 May 2011, at 00:29, OJ Reeves wrote: > Hi Russell, > > Thanks for the response. Pardon my tardiness in responding, I've had lots of > fun at home with sick kids of late. I heard, thinking of you and your family. Fingers crossed for a speedy recovery. > >> So my question: Is this

Re: Help - Riak pbc java client

2011-05-18 Thread Russell Brown
On 18 May 2011, at 11:22, Ryan Kennedy wrote: > On Wed, May 18, 2011 at 7:48 AM, Vlatko Basic wrote: >> Just put >> >> System.exit(0); >> >> as the last line. Some threads are still running and are not terminated >> unless you call the above exit() function. > > If you're running embedded i

Re: hidding buckets and keys

2011-05-26 Thread Russell Brown
On 27 May 2011, at 07:10, Antonio Rohman Fernandez wrote: > "In our case, the only nodes that are allowed to hit the Riak cluster are > those of our applications"... what if your app is more complex than that and > you have thousands of servers all around the world ( different datacenters, > d

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-02 Thread Russell Brown
Hi Jaques, Where to start...hm. On 2 Jun 2011, at 02:47, Jacques wrote: > I'm using Java and looking to replicate multi-get using a map-only job per > everyone's recommendation. > > My bucket and key names are binary values, not strings. > > I attempted to run a map reduce job using a json in

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-02 Thread Russell Brown
(storing a value with a byte[] bucket/key but the MapReduceBuilder requires Strings for bucket/key) so I want to find a work around and make sure that it is in the next version of the API. Thanks for your patience: If you could send me some code that reproduces your problem (github gist

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-04 Thread Russell Brown
On 3 Jun 2011, at 00:55, Jacques wrote: > I'm horrible at character encoding but I don't think so once we use those > strings in the Map Reduce json object. Unless we remove a bunch of > characters from any character sets, I believe we would choke the json parsing > on the riak side since ul

Re: ClientId in both PBC and REST

2011-06-04 Thread Russell Brown
On 4 Jun 2011, at 12:57, OJ Reeves wrote: > Hi all, > > I have a client which uses both the REST and PBC interfaces to Riak. When > this client makes calls, I want to make sure that the same client ID is used > for both of these interfaces. If I have an array of bytes which represents > the P

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-04 Thread Russell Brown
On 4 Jun 2011, at 18:22, Jacques wrote: > I like the sound of option 3 also. I'll have a look at it this weekend and > get back to you. > > Awesome! Thanks. If you can give me a point in the right direction > regarding the correct typing approach and what not, I'm up for giving it a > shot

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-07 Thread Russell Brown
rface to serialize/deserialize Map/Reduce jobs/results. Cheers Russell > > Thanks, > Jacques > > On Sat, Jun 4, 2011 at 1:19 PM, Russell Brown wrote: > > On 4 Jun 2011, at 18:22, Jacques wrote: > >> I like the sound of option 3 also. I'll have a look at it

Re: Correct way to use pbc/mapreduce to do multiget where keys and bucket names are binary values?

2011-06-16 Thread Russell Brown
Hi Jaques, Sorry for the slow reply. I think this one just slipped by me. Ok. answers inline below: On 14 Jun 2011, at 18:26, Jacques wrote: > Does anybody have any insight on my questions below? > > Thanks, > Jacques > > > On Tue, Jun 7, 2011 at 6:12 PM, Jacques wrote: > I've been workin

Re: Riak async PB client based on Grizzly

2011-06-22 Thread Russell Brown
Hey Jon, Any chance you want to implement the RawClient interface (https://github.com/basho/riak-java-client/blob/master/src/main/java/com/basho/riak/client/raw/RawClient.java) from the basho riak-java-client library? That way your client can be swapped straight into the basho lib? If not, let

Re: Riak async PB client based on Grizzly

2011-06-22 Thread Russell Brown
er to integrate into the Basho library. It would be great to offer library users the option to go async without changing their higher-level code. Whichever, get it up on github and we can start playing around with it! :D > > Thanks! > > Jon Brisbin > http//jbrisbin.com > >

Re: Riak async PB client based on Grizzly

2011-06-22 Thread Russell Brown
n what I can. Post that repo link when you get it on Github, Jon. Cheers Russell > > Thanks! > > Jon Brisbin > http//jbrisbin.com > > > Whichever, get it up on github and we can start playing around with it! :D > > > Thanks! > > Jon Brisbin > htt

Re: Link Walking via Map Reduce

2011-06-23 Thread Russell Brown
On 23 Jun 2011, at 16:55, Jeremiah Peschka wrote: > HTTP link walking will get you back the data in the way that you'd expect. > > It's a two-step process using PBC. MR link phases will give you a list of > [bucket, key, tag] that you can then use to pull back the records from Riak. > The new

New Java Client API

2011-06-28 Thread Russell Brown
Hi, A while back (in March) I asked for help/feedback in defining a new API for the riak-java-client[1]. Last week I merged a branch to master of the basho riak-java-client repo[2] with that new API. Defining an API is hard. I like Joshua Bloch's advice: "You can't please everyone so aim t

Re: RiakIORuntimeException

2011-07-13 Thread Russell Brown
Hi Maria, Is riak running? Can you verify it is running by using curl or wget? curl -v -X GET http://localhost:8090/riak The errors says "connection refused" which tells me Riak is probably not running, or not running on the port you've specified (8090.) If you can get Riak running and veri

Re: Facing java.net broken pipe issue while benchmarking java-PBClient with YCSB

2011-08-02 Thread Russell Brown
Hi, A couple of preliminary questions: What version of riak-java-client and what version of Riak are you using? Also, your cut and paste has come out a little garbled, could you maybe paste it into a github gist or a paste bin so I can get a better read of the code, please? Also, do you have t

Re: Achieving 100% consitency

2011-08-29 Thread Russell Brown
I'm having trouble simply posting a response to this list. This is my 3rd attempt so if anyone is being spammed, I'm sorry, but I'm just not seeing the replies and I keep getting rejection notices from the list manager… Here we go again: Hi Lukas, Sorry it has taken me so long to join this par

Re: Achieving 100% consitency

2011-08-29 Thread Russell Brown
I'm having trouble simply posting a response to this list. This is my 3rd attempt so if anyone is being spammed, I'm sorry, but I'm just not seeing the replies and I keep getting rejection notices from the list manager… Here we go again: Hi Lukas, Sorry it has taken me so long to join this par

Re: patch on riak-java-client

2011-09-02 Thread Russell Brown
Hi Giancarlo, I really appreciate the contribution, but this code has been in master since 20th July 2011[1][2] Are you working from an older commit? If so I really recommend you work from the latest master since the development of the client continues towards a v1.0 release soon. If you find

Re: Python transports

2011-09-08 Thread Russell Brown
One big yes. Couldn't agree more, and it is the direction the Java client is moving. I think the .net client is either there or on the way too. Ditto for ripple, the ruby client. Makes perfect sense. On 8 Sep 2011, at 12:31, Greg Stein wrote: > Hey, all... > > After a couple comments on my rec

Re: Riak Socket Exception using PBCClient

2011-09-14 Thread Russell Brown
--- and this time, to the list too --- Hi Harshal, On 14 Sep 2011, at 00:41, Harshal Dhir wrote: > Folks, > > > I am using Riak Search v0.14.2 5-Node-cluster. We are trying to write a > distributed application using RabbitMQ. But, for some reason riak is > bombing out on me and giving me "Brok

Re: [RFC] Python client: move to properties

2011-09-14 Thread Russell Brown
On 14 Sep 2011, at 12:37, Mathias Meyer wrote: > The short answer: yes, we can and we should. I had that on my radar for a > while too, because it felt un-Pythonic. > > As for deprecation, there's no specific rule for the Python client yet. I'm > happy to accept a patch for it for e.g. a vers

Github Issues for riak-java-client

2011-09-15 Thread Russell Brown
Hi, We turned on Github issues for the riak-java-client last night. This is another way to contribute to the riak-java-client. Basho's bugzilla[1] will still be the canonical repository of bug information. Until we release 1.0, I will be taking care of manually syncing the github issues with bug

Re: Github Issues for riak-java-client

2011-09-15 Thread Russell Brown
un...@lists.basho.com] > 代表 Russell Brown [russel...@basho.com] > 发送时间: 2011年9月15日 15:32 > 收件人: riak-users@lists.basho.com Users > 主题: Github Issues for riak-java-client > > Hi, > We turned on Github issues for the riak-java-client last night. This is > another way t

Re: Link Walking with PB-Client.

2011-09-15 Thread Russell Brown
On 15 Sep 2011, at 10:46, vijayakumar wrote: > I learnt from the mailing list that there is no direct way to link walk on > PBClient as we do with HttpClient. > Has any one implemented it on their own. If so, kindly share me the patch. You can with the 0-15-SNAPSHOT riak-java-client from master

Re: Link Walking with PB-Client.

2011-09-15 Thread Russell Brown
st/java/com/basho/riak/client/itest/ITestPBLinkWalk.java#L31 > > > On Thu, Sep 15, 2011 at 3:21 PM, Russell Brown wrote: > > On 15 Sep 2011, at 10:46, vijayakumar wrote: > > > I learnt from the mailing list that there is no direct way to link walk on > > PBClient

Re: mapreduce timeout error

2011-09-20 Thread Russell Brown
Hi Sohil, On 21 Sep 2011, at 07:07, raghwani sohil wrote: > Hi , > > I am using mapreduce technique to access all keys between perticular period . > > This is my keys.json file . > > {"inputs":{"bucket":"test", >"key_filters":[["matches" ,"2011_09_11"]]}, > "query":[{"map":{"langua

Re: Riak Search Precommit Hook in 1.0

2011-09-21 Thread Russell Brown
On 21 Sep 2011, at 19:09, Greg Pascale wrote: > A few questions > > 1) Is this fix in the RC1 build that just came out today? Yes it is. > 2) How exactly do search-cmd install, the "search" bucket property and the > precommit hook fit together now? I'm a bit unclear on what I actually need to

Re: Riak Search Precommit Hook in 1.0

2011-09-21 Thread Russell Brown
What Dan said. He was quicker and more succinct. On 21 Sep 2011, at 19:53, Russell Brown wrote: > > On 21 Sep 2011, at 19:09, Greg Pascale wrote: > >> A few questions >> >> 1) Is this fix in the RC1 build that just came out today? > > Yes it is. > >

Re: Querying Secondary Indexes

2011-09-21 Thread Russell Brown
On 21 Sep 2011, at 19:57, Jeremiah Peschka wrote: > So far, the documentation on querying secondary indexes is using the HTTP > APIs (see http://blog.basho.com/2011/09/14/Secondary-Indexes-in-Riak/). The > riakclient.proto doesn't show anything that's overwhelmingly obvious. > > Do secondary

Re: Querying Secondary Indexes

2011-09-21 Thread Russell Brown
] https://github.com/basho/riak-java-client/blob/cd67a3ffc1e2cede0a8957a015a697eac2c2b421/src/test/java/com/basho/riak/client/itest/ITestBucket.java#L298 > --- > Jeremiah Peschka - Founder, Brent Ozar PLF, LLC > Microsoft SQL Server MVP > > On Sep 21, 2011, at 12:03 PM, Russell B

Re: 1.0.0 bucket properties - PBC api

2011-09-23 Thread Russell Brown
On 23 Sep 2011, at 13:14, Antoine wrote: > Hello, > > Could you let me know if the 1.0.0 release come with the possibility to set > all bucket properties through the erlang PBC api? Especially commit hooks? I am sorry to say that it does not. In fact only the same properties as before are set

Re: Does Java client support querying large amounts of data from Riak? What is the JSON parse/serialize overhead for such Queries?

2011-09-28 Thread Russell Brown
On 28 Sep 2011, at 19:44, Harshal Dhir wrote: > Hi Ryan, > > Thanks for your response. > > To answer your question. > > #1: mapreduce will not go thru the entire key list if you feed it a search > query on input, only the matched objects [Understood, but the java client > doesn’t have a map

Riak Java Client 1.0rc1

2011-09-30 Thread Russell Brown
Hi, In case you want to try all the juicy new Riak 1.0 features from Java, I pushed a release candidate of the RJC to sonatype[1]. It will find its way to Maven Central as and when they sync. Just update your pom to use 1.0rc1. Not _all_ features are fully supported (head_only/return_head on PB

Re: script erlang contrib function

2011-10-03 Thread Russell Brown
On 3 Oct 2011, at 20:43, francisco treacy wrote: > Hi Greg > > Thanks, but what I'm really after is executing a script (non-interactive) > > This is what i've got: > > #!/usr/bin/env escript > %% -*- erlang -*- > %%! -name riakinspect -setcookie riak > > main([]) -> > %{ok, Client} = riak:cl

Re: script erlang contrib function

2011-10-03 Thread Russell Brown
ere it is, if it helps. Basically it uses rebar to escriptize a wrapper around the bucket_inspector module. Cheers Russell > > Francisco > > > 2011/10/3 Russell Brown > > On 3 Oct 2011, at 20:43, francisco treacy wrote: > >> Hi Greg >> >> Thanks,

Re: Secondary Index ??

2011-10-05 Thread Russell Brown
On 5 Oct 2011, at 13:45, Roland Karlsson wrote: > Hi, > > I might not look hard enough - but I cannot find how to use > the secondary indices from the riakc erlang client interface. > No example and no manual. Ooops, we'll get on that. > > I need a simple example how to write an indexed objec

Re: Secondary Index ??

2011-10-06 Thread Russell Brown
ask to eleveldb. > > I added one object with the same index and then I got the answer > > {ok, [[<<"persons">>,<<"kenny">>],[<<"persons">>,<<"bosse">>]]} > > Hmmm ... why is it a list in a list?

Re: Riak 1.0, Clojure and the Java Client

2011-10-07 Thread Russell Brown
Hi Tim, On 7 Oct 2011, at 22:45, Tim Robinson wrote: > > Hello, > > I have been slowly learning & evaluating Riak for a product I am developing. > Originally I gave Riak a whirl about 6 months back, but stopped due to some > missing features. With the recent release of 1.0 I've decided to giv

Re: precommit - a newbie question

2011-10-11 Thread Russell Brown
Hi Hal, Welcome to Riak! On 11 Oct 2011, at 09:01, Hal Eisen wrote: > Greetings! > > I am a new user of Riak, so please forgive me if this has been addressed > before. I've spent an hour or so reading through the wiki, but couldn't > find the answer to my question. > > I am trying to install a

riak-java-client 1.0.0 released

2011-10-12 Thread Russell Brown
Hi, I just pushed the big red button and released 1.0.0 of the riak-java-client. Changes from last week's 1.0rc1 include domain object mapping for user meta, riak indexes and riak links, and a bug fix from chrisumbel for the HTTP transport (https://github.com/basho/riak-java-client/pull/64) Cha

Re: Hey, Python client users

2011-10-17 Thread Russell Brown
On 16 Oct 2011, at 06:18, Greg Stein wrote: > Hey all, > > The Basho folks have been slow to integrate changes, given their busy > schedule with the 1.0 release. This is true. Sorry. But we are now putting some time into the client libraries in general and the python client in particular. > I

Riak Java Client 1.0.1 release, fixes connection pool bug

2011-10-18 Thread Russell Brown
Hi, I've just released 1.0.1 of the riak-java-client to Sonatype. There was a bug with PB client connection pool idle connection reap task. In certain situations it could go into a prolonged or infinite loop. 1.0.1 fixes this issue[1] as well as another bug with the PB client factory that did no

Re: Hey, Python client users

2011-10-20 Thread Russell Brown
On 20 Oct 2011, at 11:27, Greg Stein wrote: > On Oct 18, 2011 11:12 AM, "Greg Stein" wrote: > >... > > The short answer: my branch puts connection management into the > > transport, and Brett's patches puts that into the client. A decision > > needs to be made, and that will determine future wor

Re: 2i query, weird null results, java pbclient

2011-10-24 Thread Russell Brown
On 24 Oct 2011, at 20:21, Alexander Robbins wrote: > Using a new Riak 1.0 cluster. > > We added data in with a secondary index. When getting the data back out the > results list is odd. > > [null, null, null, null, null, null, null, null, null, null, null, null, > null, null, null, null, null

Re: 2i query, weird null results, java pbclient

2011-10-24 Thread Russell Brown
e causing that error. Any ideas? Classpath issue. You have an older HTTP Client jar on your class path, 4.0.x. The 4.1.1 Apache HTTP Client that the RJC depends on has a no-arg TSCM constructor, the 4.0.x release did not. > > Alex > > On Mon, Oct 24, 2011 at 3:02 PM, Russell Brown

Re: 2i query, weird null results, java pbclient

2011-10-25 Thread Russell Brown
e_identity","arg":"{reduce_phase_only_1, true}"}}]} It would really help figure out at what point the problem is. If this M/R works OK then I'll raise a bug against the Java client. Cheers Russell > > Alex > > On Mon, Oct 24, 2011 at 4:11 PM, Russ

Re: 2i query, weird null results, java pbclient

2011-10-25 Thread Russell Brown
"5b9d1a6250dbd3e77ff004a12d06958745ee32844ad4aa668001bbe69b5efcf8"); MapReduceResult result = client.mapReduce(q).addReducePhase(NamedErlangFunction.REDUCE_IDENTITY, "{reduce_phase_only_1, true}").execute(); Collection r

Re: 2i query, weird null results, java pbclient

2011-10-25 Thread Russell Brown
On 25 Oct 2011, at 18:48, Alexander Robbins wrote: > That code snippet isn't working because I've got a RawClient instance and its > mapReduce method wants a MapReduceSpec. I ran into this problem while trying > to use search also. I ended up making a search object and then serializing it > to

<    1   2   3   4   >