How to switch from Bitcask to eLevelDB

2012-04-11 Thread Alek Morfi
Hi, Does anyone know how to switch from Bitcask to eLevelDB? In app.config both of them exist as shown below: %% Bitcask Config {bitcask, [ {data_root, "./data/bitcask"} ]}, %% eLevelDB Config {eleveldb, [ {data_root, "./data/leveldb"} ]}, Rega

RE: How to switch from Bitcask to eLevelDB

2012-04-11 Thread charles
Hi Alek, You need to change the setting under Riak KV Config, it should be about Line 40 - 45 in your app.config. Just change it to reflect what you have below and then restart Riak. %% Riak KV config {riak_kv, [ %% Storage_backend specifies the Erlang module defining the storage

RE: How to switch from Bitcask to eLevelDB

2012-04-11 Thread charles
Hi Alek, Sorry, I made a mistake earlier. Below is the correct information. %% Riak KV config {riak_kv, [ %% Storage_backend specifies the Erlang module defining the storage %% mechanism that will be used on this node. {storage_backend, riak_kv_eleveldb_backend},

Problem while trying multi get in mapreduce.

2012-04-11 Thread vijayakumar
I am trying to execute multi get of list of keys in java pb client. My map-reduce query looks as following (found from debugging): {"inputs":{"bucket":"mybucket","key_filters":[["eq","keypart1@ @@keypart2"]]},"query":[{"map":{"language":"javascript","name":"Riak.mapValuesJson","keep":true}}]} Th

Using PBClusterConfig with RiakClient

2012-04-11 Thread Ahmed Bashir
Hey guys, I currently have an app that uses the RiakClient/RiakObject interface (fetch(),store(),etc) in lieu of the IRiakClient/IRiakObject/FetchObject interface. Is there any way for me to continue using my code with PBClusterConfig? It looks like I need to move to using IRiakClient in order t

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Sean Cribbs
Ahmed, I think you'll find this resource useful, it contains some examples of how to use PBClusterConfig: https://github.com/basho/riak-java-client/wiki/ClientFactory On Wed, Apr 11, 2012 at 2:29 PM, Ahmed Bashir wrote: > Hey guys, > > I currently have an app that uses the RiakClient/RiakObject

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Ahmed Bashir
Thanks for the link; this is precisely what led me to believe that PBClusterConfig only supports IRiakClient, so I thought I'd ask around ... Also, if we create a RiakClient with a single host (and others exist), is there any auto-dicovery that goes on to balance the requests across ll ring member

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Sean Cribbs
Ahmed, Only one host will process the request (although it will be dispatched automatically as needed to replicas around the cluster). If you must connect to only a single host, consider putting a load-balancer between your client and Riak. We are working on auto-configuring clients for a future R

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Russell Brown
Hi Ahmed, On 11 Apr 2012, at 19:45, Ahmed Bashir wrote: > Thanks for the link; this is precisely what led me to believe that > PBClusterConfig only supports IRiakClient, so I thought I'd ask around PBClusterConfig is used to produce a RawClient. IRiakClient is just a wrapper around RawClient. T

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Ahmed Bashir
Thanks Russell! Any benefit to using IRiakClient vs RawClient other than what's apparent in the API spec? On Wed, Apr 11, 2012 at 12:09 PM, Russell Brown wrote: > Hi Ahmed, > > On 11 Apr 2012, at 19:45, Ahmed Bashir wrote: > > Thanks for the link; this is precisely what led me to believe that >

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Russell Brown
On 11 Apr 2012, at 21:20, Ahmed Bashir wrote: > Thanks Russell! > > Any benefit to using IRiakClient vs RawClient other than what's > apparent in the API spec? > RawClient leaves you to deal with all the trade-offs that are consequences of using fault-tolerant, distributed databases like Riak

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Ahmed Bashir
It's not clear why the raw client API can't store() a RiakObject; it looks like I need to implement IRiakObject myself On Wed, Apr 11, 2012 at 1:39 PM, Russell Brown wrote: > > On 11 Apr 2012, at 21:20, Ahmed Bashir wrote: > >> Thanks Russell! >> >> Any benefit to using IRiakClient vs RawClient o

Re: Using PBClusterConfig with RiakClient

2012-04-11 Thread Russell Brown
On 11 Apr 2012, at 22:15, Ahmed Bashir wrote: > It's not clear why the raw client API can't store() a RiakObject; it > looks like I need to implement IRiakObject myself It stores IRiakObject. There is an implementation in the library. Or use the builder. It doesn't store RiakObject as there ar