novice question on link walking java api

2010-08-03 Thread Akhil Kodali
Hi, This might be a trivial question. Consider the following snippet from the java api repository WalkResponse r = riak.walk("bucket", "key", "bucket,_,1"); if (r.isSuccess()) { List> steps = r.getSteps(); for (List step : steps) { for (RiakObject o : step) {

Re: novice question on link walking java api

2010-08-03 Thread Sean Cribbs
Riak returns link-walking results as nested multipart/mixed responses, even when there's only one phase being returned. Because it breaks it into multiple multipart bodies, you can easily distinguish the results of each phase. Sean Cribbs Developer Advocate Basho Technologies, Inc. http://basho

Structured data

2010-08-03 Thread James Sadler
Hi guys, Is there any plan for supporting more than opaque blobs as values in the future? For example, lists, sets, hashes etc, including server-side support for operating on those data-types? In the meantime, I am curious about the feasibility of putting riak_core in front of Redis, and support

Re: Structured data

2010-08-03 Thread Dmitry Demeshchuk
Hi, James. Actually, Riak can store all Erlang terms: lists, tuples, numbers, binaries, etc. But if you use, for example, PHP or Python, you can just use your own serialization format. So there are no problems here for any other languages as well. On Tue, Aug 3, 2010 at 5:47 PM, James Sadler wr

Re: Structured data

2010-08-03 Thread James Sadler
Hi Dmitry, Being able to represent any Erlang term is a good start. Which leads me to Riak's conflict resolution. Does this part of Riak understand the data types or does it just present the N alternative values for a key to the client when there is a conflict? There is potential for some semi-

Re: Structured data

2010-08-03 Thread Curtis Caravone
Riak is not aware of the data types. It just presents a list of values to the client for conflict resolution. Curtis On Tue, Aug 3, 2010 at 7:15 AM, James Sadler wrote: > Hi Dmitry, > > Being able to represent any Erlang term is a good start. > > Which leads me to Riak's conflict resolution.

Re: Structured data

2010-08-03 Thread Dmitry Demeshchuk
James, What mechanism are you trying to implement? Generally, it's not a good way to let your database operate the format of your data. For example, if you want to store some lists of data and append new items to them or remove existing ones, you won't need Riak to check data types itself. All su

Questions about ring state management.

2010-08-03 Thread Mark Anderson
I'm playing around with setting up and tearing down clusters and I had a few questions: Looking at the chef recipe for riak sets an option in riak_core 'default_gossip_seed'; apparently this is intended to cue a newly spun up node where to look to join the cluster. But for the life of me I can't g

MapReduce timeout fetching 1million records from 100million records.

2010-08-03 Thread Ken Matsumoto
Hi all, I managed to insert 100 million records. I tried MapReduce to fetch 1 million records, but it failed with timeout error. I can fetch 1 record by using GET method, of course. But I can't do after this timeout error comes out until rebooting Riak. Anyone know how I get rid of this? Data fo

Re: Structured data

2010-08-03 Thread James Sadler
Dmitry, On 4 August 2010 01:09, Dmitry Demeshchuk wrote: > James, > > What mechanism are you trying to implement? Generally, it's not a good > way to let your database operate the format of your data. It has advantages if the database understands certain datatypes. For, instance I don't need to

Re: Structured data

2010-08-03 Thread Kevin Smith
On Aug 3, 2010, at 8:10 PM, James Sadler wrote: > > I'm talking about creating something new > here, on top of riak_core. My questions are about the feasibility of > whether I could extend riak_core to be able to handle these > situations. If you are truly considering doing this then it

Re: Structured data

2010-08-03 Thread James Sadler
On 4 August 2010 10:30, Kevin Smith wrote: > > On Aug 3, 2010, at 8:10 PM, James Sadler wrote: > > >> >>  I'm talking about creating something new >> here, on top of riak_core. My questions are about the feasibility of >> whether I could extend riak_core to be able to handle these >> situations.