Riak Erlang Client 2.5.3 released

2017-03-06 Thread Luke Bakken
Hi everyone - Version 2.5.3 of the Riak Erlang client is available from both GitHub and hex.pm. This is the first version published to hex.pm from Basho, and I'd like to thank Drew Kerrigan for his assistance in getting that set up. https://hex.pm/packages/riakc https://github.com/basho

Riak Erlang Client 2.4.1 released

2016-07-11 Thread Luke Bakken
Hi everyone - I just released version 2.4.1 of the Erlang client. The main feature is support for OTP 19 in the client itself and its dependencies. Dialyzer appears to be making erroneous warnings at this point that will be addressed in the future. https://github.com/basho/riak-erlang-client

Re: Riak Erlang Client 2.4.0 released

2016-07-08 Thread DeadZen
w00t On Friday, July 8, 2016, Luke Bakken wrote: > Hi everyone - > > I just released version 2.4.0 of the Erlang client. The main feature > is support for both Riak KV and Riak TS. > > https://github.com/basho/riak-erlang-client/releases/tag/2.4.0 > > https://github.com/

Riak Erlang Client 2.4.0 released

2016-07-08 Thread Luke Bakken
Hi everyone - I just released version 2.4.0 of the Erlang client. The main feature is support for both Riak KV and Riak TS. https://github.com/basho/riak-erlang-client/releases/tag/2.4.0 https://github.com/basho/riak-erlang-client/blob/master/RELNOTES.md https://github.com/basho/riak-erlang

Re: riak-erlang-client

2016-05-25 Thread Richard Jonas
Thank you for the quick answer. On Wed, May 25, 2016 at 4:13 PM, Nick Marino wrote: > Hi Richard, > > Yes, sharing a riak-erlang-client connection process among multiple Erlang > processes should not cause any problems. The riak_pb_socket processes are > implemented using a gen_s

Re: riak-erlang-client

2016-05-25 Thread Nick Marino
Hi Richard, Yes, sharing a riak-erlang-client connection process among multiple Erlang processes should not cause any problems. The riak_pb_socket processes are implemented using a gen_server, and they use a queuing mechanism to handle concurrent requests. If process A has sent a request and is

riak-erlang-client

2016-05-25 Thread Richard Jonas
Guys, most of the examples I can see that riak erlang client processes cannot be shared with multiple processes. Is it safe if more processes use the same riak connection? So in other words: is riak erlang client thread-safe? Thanks -- Richard Jonas Erlang Solutions Hungary Kft Address

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

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

2015-08-06 Thread 王昊
When I try this in Erlang:(saving a new Map object to a bucket through ) Map = riakc_map:new(), Map1 = riakc_map:update({<<"published_b">>, flag}, fun(F) -> riakc_flag:disable(F) end, Map); I got context_required. How could I create a false flag? I tried ena

Re: riak-erlang-client

2014-09-29 Thread Sean Cribbs
ussell Brown > wrote: >> Have you included the deps/riak_pb/ebin in your erlang path? >> >> On 29 Sep 2014, at 17:18, Jon Brisbin wrote: >> >> I’m trying to use the riak-erlang-client from master to talk to Riak 2.0 >> and >> I’m getting an error when I use the

Re: riak-erlang-client

2014-09-29 Thread Jon Brisbin
included the deps/riak_pb/ebin in your erlang path? > > On 29 Sep 2014, at 17:18, Jon Brisbin wrote: > > I’m trying to use the riak-erlang-client from master to talk to Riak 2.0 and > I’m getting an error when I use the test commands found in the README: > >

Re: riak-erlang-client

2014-09-29 Thread Sean Cribbs
in your erlang path? > > On 29 Sep 2014, at 17:18, Jon Brisbin wrote: > > I’m trying to use the riak-erlang-client from master to talk to Riak 2.0 and > I’m getting an error when I use the test commands found in the README: > > (rabbit@localhost)1> {ok, Pid} = riakc_pb_socke

Re: riak-erlang-client

2014-09-29 Thread Russell Brown
Have you included the deps/riak_pb/ebin in your erlang path? On 29 Sep 2014, at 17:18, Jon Brisbin wrote: > I’m trying to use the riak-erlang-client from master to talk to Riak 2.0 and > I’m getting an error when I use the test commands found in the README: > > (rabbit@localhost

riak-erlang-client

2014-09-29 Thread Jon Brisbin
I’m trying to use the riak-erlang-client from master to talk to Riak 2.0 and I’m getting an error when I use the test commands found in the README: (rabbit@localhost)1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). {ok,<0.685.0>} (rabbit@localhost)2> ri

Re: Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Steve Vinoski
This is caused by a pattern mismatch in your shell. Your left-hand side of the assignment is {ok, [{0, [S]}]} which indicates that the list returned inside the inner tuple is going to have only a single element, S. If you change it to: {ok, [{0, S}]} it will work, assuming S is not already prev

Re: Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Gopi Krishna
Hi, I got it. very much thanks,one more doubt please clarify it. same thing i have done for another bucket called "test" which contains data in the form of key, value. but when i do map reduce i am getting the following: {ok, [{0,[S]}]} = riakc_pb_socket:mapred(Pid,<<"test">>,[{map,{qfun,Maps},

Re: Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Steve Vinoski
On Sat, May 17, 2014 at 10:04 AM, Gopi Krishna wrote: > Hi, > > I am getting the following , don't know what was happening could you > please elaborate and explain the solution to this. > > I am working on erlang-riak-client. > > > 1> {ok, Pid} = riakc_pb_socket:start_link('127.0.0.1',10017). > {

Facing exception error in riak-erlang client in erlang shell while doing Mapreduce

2014-05-17 Thread Gopi Krishna
Hi, I am getting the following , don't know what was happening could you please elaborate and explain the solution to this. I am working on erlang-riak-client. 1> {ok, Pid} = riakc_pb_socket:start_link('127.0.0.1',10017). {ok,<0.34.0>} 2> 2> 2> Object = riakc_obj:new(<<"test_age">>, <<"test1">>

Problem with r_object and riak-erlang-client compatibility

2014-05-14 Thread Alex Turkin
3.nabble.com/Problem-with-r-object-and-riak-erlang-client-compatibility-tp4031118.html Sent from the Riak Users mailing list archive at Nabble.com. ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Re: riak-erlang-client, riak HTTP API, riak search

2014-05-08 Thread Brisa Anahi Jimenez Flores
want to save buckets through riak-erlang-client. > > If I save a bucket through HTTP API, I get search results (search-cmd and > solr interface), but, If I save through riak-erlang-client, I don't have any > results. > > I tried to save the same bucket/key/value through

riak-erlang-client, riak HTTP API, riak search

2014-05-08 Thread Brisa Anahi Jimenez Flores
Hi everybody! I'm using riakc, branch 1.4 and riak-1.4.7. I want to save buckets through riak-erlang-client. If I save a bucket through HTTP API, I get search results (search-cmd and solr interface), but, If I save through riak-erlang-client, I don't have any results. I tried to sav

Re: Riak Erlang client documentation

2013-08-19 Thread Sean Cribbs
Hi Michal, Sorry for the delay, it has just been updated. On Mon, Aug 19, 2013 at 3:04 PM, Michał Ptaszek wrote: > Hi, > > are there any plans for keeping the Erlang edoc page up-to-date with the > current state of the library (http://basho.github.io/riak-erlang-client/)? >

Riak Erlang client documentation

2013-08-19 Thread Michał Ptaszek
Hi, are there any plans for keeping the Erlang edoc page up-to-date with the current state of the library (http://basho.github.io/riak-erlang-client/)? Current version seems to be pretty old (Generated by EDoc, Nov 1 2012, 15:19:50): the latest API is not in sync with what we have in 1.4.1 tag

[ANN] Riak Erlang Client 1.4.0

2013-07-29 Thread Sean Cribbs
Hi Riak Users, It seems I have failed to mention that we tagged 1.4.0 of the riak-erlang-client a few weeks ago! This includes support for all Riak 1.4 features and some other niceties that were picked up along the way. https://github.com/basho/riak-erlang-client/releases/tag/1.4.0 -- Sean

Re: A story about unexpected changes in riak-erlang-client dependencies

2013-04-09 Thread Dmitry Demeshchuk
d, we use rebar lock plugin and recursively lock all > deps on same commit. > > > > -- > View this message in context: > http://riak-users.197444.n3.nabble.com/A-story-about-unexpected-changes-in-riak-erlang-client-dependencies-tp4027582p4027594.html > Sent

Re: A story about unexpected changes in riak-erlang-client dependencies

2013-04-09 Thread Daniil Churikov
recursively lock all deps on same commit. -- View this message in context: http://riak-users.197444.n3.nabble.com/A-story-about-unexpected-changes-in-riak-erlang-client-dependencies-tp4027582p4027594.html Sent from the Riak Users mailing list archive at Nabble.com

Re: A story about unexpected changes in riak-erlang-client dependencies

2013-04-09 Thread Jared Morrow
In regards to 3rd parties, we've generally had good luck asking the developer to make a tag for us or to merge a branch that has fixed dependencies. I do agree it is a problem, but it is one that can be fixed. Sorry you ran into problems in any of our repos, we are working to fix our process a bi

Re: A story about unexpected changes in riak-erlang-client dependencies

2013-04-09 Thread Yuri Lukyanov
Glad to hear you are moving away from master dependencies. Would be great if all of us follow this way. It's sad that even if you completely sorted out your own deps and rebar.conig's, it does not solve the problem in general. You may still want to use third-party deps which are not necessary good

Re: A story about unexpected changes in riak-erlang-client dependencies

2013-04-09 Thread Reid Draper
Yuri, You're certainly not the only one dealing with this. Sorry about that. It's bit us here at Basho a few times too. As you saw, we're moving toward not having master dependencies, at least for tagged versions of repos. Especially for projects that are likely to be dependencies in other proj

A story about unexpected changes in riak-erlang-client dependencies

2013-04-09 Thread Yuri Lukyanov
Hi, To begin with, I almost fucked up production servers with these changes in riak_pb: https://github.com/basho/riak_pb/commit/2505ff1fa3975b93150d7445b6f7b91940ecb970 Well, this issue boils down to commonly known rebar-related problem. I was even hesitating which mailing list I should've sent t

Riak Search Using Riak Erlang Client

2013-01-18 Thread Jorge Garrido
Hi I've implemented a riak search using riak-erlang-client like this: First I put an object into Riak using erlang: $ erl -pa > ObjUser1 = riakc_obj:new(<<”users”>>, <<”user_one”>>, [{name, mario}, {age, 10}]). >

Re: riak-erlang-client ping problem

2012-12-12 Thread Olav Frengstad
netstat: # netstat -nlt [1] http://docs.basho.com/riak/latest/references/Configuration-Files/#app-config Olav 2012/12/12 Pablo Vieytes : > Hi, > I'm new with Riak. I'm trying to use riak-erlang-client but I have some > problems. > > I can connect with the browser t

Re: riak-erlang-client ping problem

2012-12-12 Thread Eric Redmond
You're pinging the protocol buffer port 8091. HTTP is on another port, check your app.config setting. Eric On Dec 12, 2012, at 6:23 AM, Pablo Vieytes wrote: > Hi, > I'm new with Riak. I'm trying to use riak-erlang-client but I have some > problems. > > I c

Re: riak-erlang-client ping problem

2012-12-12 Thread Pablo Vieytes
solved I just had to connect to the Protobuf Port instead of http port. 2012/12/12 Pablo Vieytes > Hi, > I'm new with Riak. I'm trying to use riak-erlang-client but I have some > problems. > > I can connect with the browser to localhost:8091 > > http://loca

riak-erlang-client ping problem

2012-12-12 Thread Pablo Vieytes
Hi, I'm new with Riak. I'm trying to use riak-erlang-client but I have some problems. I can connect with the browser to localhost:8091 http://localhost:8091/ping -> ok But I can do a ping with the erlang client. 1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1&quo

Re: Building riak-erlang-client

2012-10-25 Thread Martin Woods
t Riak and R15B02 apply to the client code, so I think we're safe there unless anybody can tell me otherwise! Regards, Martin. On 25 October 2012 13:18, David Parfitt wrote: > Hello Martin - > > Yes, riak-erlang-client 1.3.1 is the latest tag that you should be > using to build

Re: Building riak-erlang-client

2012-10-25 Thread David Parfitt
Hello Martin - Yes, riak-erlang-client 1.3.1 is the latest tag that you should be using to build from Github. The protobuffs implementation produces several warnings during compilation. I attached the output of 'make' and 'rebar eunit' using Erlang R15B01 to the gist [1]

Building riak-erlang-client

2012-10-25 Thread Martin Woods
Hi We're in the process of upgrading Riak to 1.2.1 and have a question regarding the correct stable version of the riak-erlang-client to use within our Erlang app against this version of Riak. It seems that we should be cloning riak-erlang-client from github and using the state of the co

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

2012-09-07 Thread Ryan Zezeski
Julian, On Thu, Aug 16, 2012 at 6:51 PM, Julian wrote: > > > One of the intriguing things I find is that the exception is listed as > occuring in one of my own processes that is doing json decoding, however I > have checked the json by saving it to a file and it does not contain the > data shown

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

2012-08-29 Thread Sean Cribbs
I have pushed to the gh-pages branch a newly-generated edoc, which includes the changes Dave mentioned. They should be live now at http://basho.github.com/riak-erlang-client On Wed, Aug 29, 2012 at 10:54 PM, Dave Parfitt wrote: > Hi Julian - > The riak-erlang-client docs definitely need

Search API question (was: riak-erlang-client issue with Riak EE 1.2)

2012-08-29 Thread Julian
s is related to indexing or something like that? Unfortunately, I did not configure our Riak search and can't say definitively whether I have secondary indices on those or not. Thanks Julian On Wed, Aug 29, 2012 at 12:54 PM, Dave Parfitt wrote: > Hi Julian - >The riak-erlang-client

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

2012-08-29 Thread Dave Parfitt
Hi Julian - The riak-erlang-client docs definitely need to be updated for search, index, and map/reduce. In the meantime, if you notice on this line: https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L635 you'll see that the type for Options is "sear

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

2012-08-28 Thread Sean Cribbs
s now. > > The Map/Reduce functions are available here: > https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L454 > > and the Search functions are available here: > https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L618 > >

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

2012-08-28 Thread Dave Parfitt
basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L454 and the Search functions are available here: https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L618 Cheers - Dave On Aug 28, 2012, at 3:06 PM, Julian wrote: > Hi Dave, > > I don't see

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

2012-08-28 Thread Julian
id:o.account_id, account_type_id:o.account_type_id, deleted:o.deleted, status:o.status, hidden:o.hidden, currency:o.currency}; return [JSON.stringify(p)] } On Fri, Aug 17, 2012 at 6:22 AM, Dave Parfitt wrote: > > Hello Julian - > > A new version of the riak-erlang-client [1] was recently released that >

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

2012-08-17 Thread Dave Parfitt
Hello Julian - A new version of the riak-erlang-client [1] was recently released that changes riakc_pb_socket:search/* to use protobuffs instead of map/reduce. Give that a shot first and let us know if it works for you. Cheers - Dave [1] https://github.com/basho/riak-erlang-client/ On

riak-erlang-client issue with Riak EE 1.2

2012-08-16 Thread Julian
Hi, Recently, we upgraded our Riak cluster to 1.2. I hear that one of our buckets has been wiped and reloaded, but our index (Riak search is enabled) may not be in a consistent state. This has led to an error in code using riak-erlang-client 1.2, shown below. One of the intriguing things I find

Re: emulated vs native support in riak-erlang-client

2012-08-15 Thread Sean Cribbs
You misunderstand. That is *already* in the tagged 1.3.0 version of riak-erlang-client; I meant the documentation. On Wed, Aug 15, 2012 at 1:46 PM, Anthony Molinaro < antho...@alumni.caltech.edu> wrote: > > Hi Sean, > > How soon is "soon"? In other words when can w

Re: emulated vs native support in riak-erlang-client

2012-08-15 Thread Anthony Molinaro
Hi Sean, How soon is "soon"? In other words when can we expect a new riak-erlang-client with this fix? Will it be tied to a release of riak or can the client be released separately? Or is it in the last tagged version (1.3.0), but undocumented? Thanks, -Anthony On Tue, Aug 14,

Re: emulated vs native support in riak-erlang-client

2012-08-14 Thread Sean Cribbs
That item will be updated soon since it now has native. The difference is whether it can send/receive the new Protocol Buffers messages to perform search queries, or if it performs them through MapReduce. Sean Cribbs On Aug 14, 2012, at 7:10 PM, Gregory de Souza wrote: > Hi folks, > The wiki

emulated vs native support in riak-erlang-client

2012-08-14 Thread Gregory de Souza
Hi folks, The wiki on client libs (http://wiki.basho.com/Client-Libraries.html) indicates that the protocol buffer-based erlang library (riakc) only supports emulated (and not native) search. Can someone explain the difference between 'emulated' and 'native'? Thanks! -- Gregory _

Re: riak-erlang-client search changes

2012-08-03 Thread Dave Parfitt
umber of results }). Cheers - Dave On Aug 2, 2012, at 11:08 PM, Andrew Berman wrote: > The more fields the better. I like this change. > > Andrew > > On Aug 2, 2012 8:17 AM, "Dave Parfitt" wrote: > Hello - > We're considering some changes to the Ri

Re: riak-erlang-client search changes

2012-08-02 Thread Andrew Berman
The more fields the better. I like this change. Andrew On Aug 2, 2012 8:17 AM, "Dave Parfitt" wrote: > Hello - > > We're considering some changes to the Riak Search functionality in > riak-erlang-client for the upcoming Riak 1.2 release. The current behavior of &

riak-erlang-client search changes

2012-08-02 Thread Dave Parfitt
Hello - We're considering some changes to the Riak Search functionality in riak-erlang-client for the upcoming Riak 1.2 release. The current behavior of the riakc_pb_socket:search/* functions return a list in the form: [[Index, Id],[Index2,Id2],...] With the new Riak Search protobuffs mes

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-13 Thread Mark Phillips
his long to get up and running with any component of Riak. >> Our fault. Appreciate your help with fixing it. >> >> Mark >> >> 1 - https://github.com/basho/riak_wiki/issues/new >> >> On Mar 11, 2012, at 18:48, Buri Arslon wrote: >> >> Afte

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-13 Thread Daniil Churikov
But now i got stuck wtih how to give this keys as input to map phase? -- View this message in context: http://riak-users.197444.n3.nabble.com/Can-t-find-docs-tutorial-on-secondary-indexes-for-riak-erlang-client-tp3817052p3822853.html Sent from the Riak Users mailing list archive at Nabble.com

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-12 Thread Daniil Churikov
t;"k7">>, <<"k6">>, <<"k5">>, <<"k4">>, <<"k3">>, <<"k2">>, > <<"k1">>]} where <<"$key">> is a special value ofr key index. I tes

Fwd: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-11 Thread Buri Arslon
-- Forwarded message -- From: Buri Arslon Date: Sun, Mar 11, 2012 at 11:47 PM Subject: Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client To: Mark Phillips No problem, Mark. I've submitted a new issue. https://github.com/basho/riak_wiki/issues/2

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-11 Thread Mark Phillips
lon wrote: > After several hours of searching, trying, getting errors ... finally I was > able to insert secondary index with riak-erlang-client. Here is the code > which I successfully ran: > > %% Set some vars >{Bucket, Key, Index} = {<<"test_users&

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-11 Thread Buri Arslon
After several hours of searching, trying, getting errors ... finally I was able to insert secondary index with riak-erlang-client. Here is the code which I successfully ran: %% Set some vars {Bucket, Key, Index} = {<<"test_users">>, <<"aldark

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-11 Thread Buri Arslon
tracked down what you're looking for. >> >> You can use one of the riakc_pb_socket:get_index functions to pull back >> data from an index. If you look at the source on the methods, you'll see >> that they're just wrappers around a MapReduce call. A

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-11 Thread Buri Arslon
metadata in by hand, but I could be wrong on that one. > > If I'm wrong, hopefully someone on the list will correct my Erlang-y > ignorance. > > get_index/4 [1] > get_index/5 [3] > get_index/6 [2] > get_index/7 [4] > > > > [1]: > https://github.com

Re: Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-11 Thread Jeremiah Peschka
ne on the list will correct my Erlang-y ignorance. get_index/4 [1] get_index/5 [3] get_index/6 [2] get_index/7 [4] [1]: https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L677 [2]: https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L695

Can't find docs/tutorial on secondary indexes for riak-erlang-client

2012-03-11 Thread Buri Arslon
Hi everybody, I can't find any tutorial or docs on secondary indexes. Here ( http://lists.basho.com/pipermail/riak-users_lists.basho.com/2011-October/005952.html) it was stated that the docs would be updated but I can't find it. I just wanted a doc which explains how to use secondary indexes with

Re: riak-erlang-client mapred returns wrong object

2012-03-03 Thread Sean Cribbs
e just the keys and then fetch the bucket/key pairs using the get/* path. On Sat, Mar 3, 2012 at 4:16 AM, Senthilkumar Peelikkampatti < senthilkumar.peelikkampa...@gmail.com> wrote: > riak-erlang-client mapred with riak_kv_mapreduce:map_identity(true) is > returning riak_object inst

riak-erlang-client mapred returns wrong object

2012-03-03 Thread Senthilkumar Peelikkampatti
riak-erlang-client mapred with riak_kv_mapreduce:map_identity(true) is returning riak_object instead of riakc_obj -- I tried multiple times and I am not seeing riakc_obj. IndexSpec = {index, bucket(), <<"some_bin">>, Bin} riakc_pb_socket:mapred(Pid, IndexSpec, [riak_kv_

Re: riak-erlang-client serverside clarification

2012-03-01 Thread Senthilkumar Peelikkampatti
Sean, Thanks for the response. I considered below option before coming to this forum but my question is only riak put needs conversion from binary to term and other places in my application, app consumes pure erlang term including MR. It is going to be huge benefit for my app to stay consumin

Re: riak-erlang-client serverside clarification

2012-03-01 Thread Sean Cribbs
Hi Senthilkumar, Because the PB client is connecting to a language-agnostic interface, it makes sense that it will only store binary data as the value. In general, it's better not to rely on the fact that your value is Erlang terms, but to assume Riak will treat the value opaquely, as a binary.

riak-erlang-client serverside clarification

2012-02-29 Thread Senthilkumar Peelikkampatti
I am using currently erlang native client and it is working beautifully so far. I wanted to move it to pb client due to 1. it is kind of pain to update relevant binaries 2. bidirectional network connection with riak nodes and my application nodes and associated load etc to the system 3. dependency

Re: riak-erlang-client write, riak-java-client read problem

2012-01-09 Thread Sean Cribbs
Marcel, Sorry for the confusion, I missed one significant detail. mochijson2:encode/1 will return an iolist (a list of lists and binaries). Wrap the call to mochijson2:encode/1 in erlang:iolist_to_binary/1, like so: Value = erlang:iolist_to_binary(mochijson2:encode({struct, [{id, 22}]})). Hope t

Re: riak-erlang-client write, riak-java-client read problem

2012-01-09 Thread Marcel Müller
Hi Sean, thanks for your help but we found another problem: after we insert the valid json: {ok,Pid} = riakc_pb_socket:start_link("10.10.10.74", 8087), Value = mochijson2:encode({struct, [{id, 22}]}), In = riakc_obj:new(<<"mm">>,<<"1">>,Value,"application/json"),

Re: riak-erlang-client write, riak-java-client read problem

2012-01-07 Thread Sean Cribbs
Marcel, {ok,Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087), > Tuple = "{\"id\",22}", > That is not valid JSON, first of all. > Obj = riakc_obj:new("mm","1",Tuple), > Make sure that you set the content type here, otherwise it won't be detected on the Java side. (example below)

riak-erlang-client write, riak-java-client read problem

2012-01-07 Thread Marcel Müller
Hi Guys, it looks like we have a conversation problem between both APIs. First i wrote with riak-erlang-client to the riak: {ok,Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087), Tuple = "{\"id\",22}", Obj = riakc_obj:new("mm",&qu

Re: riak-erlang-client unit tests fail with most recent tag

2011-10-21 Thread Anthony Molinaro
. Unfortunately the most > recent tag of riak-erlang-client (1.2.0) fails its unit tests > > ==> basho (eunit) > Compiled src/riakc_obj.erl > Compiled src/riakc_pb.erl > Compiled src/riakc_pb_socket.erl > > =ERROR REPORT 21-Oct-2011::16:33:23 === > ** Generic serv

riak-erlang-client unit tests fail with most recent tag

2011-10-21 Thread Anthony Molinaro
Hi, So I was getting ready to start updating riak from 0.14.2 to 1.0.1 and thought I should probably update my client as well (although from what I can tell this is not a requirement to upgrade). Unfortunately the most recent tag of riak-erlang-client (1.2.0) fails its unit tests ==> ba

Re: not working server generated object keys in riak-erlang-client

2011-05-08 Thread Dmitry Rozhkov
2011/5/7 Andrew Thompson > On Sat, May 07, 2011 at 03:47:02PM +0300, Dmitry Rozhkov wrote: > > Hi! > > > > I've just tried to put an object without a key as described in the docs, > but > > this feature doesn't seem to work (sasl-error.log attached): > > > > I'm assuming both the client and serv

Re: not working server generated object keys in riak-erlang-client

2011-05-07 Thread Sean Cribbs
This might not be available until the next release. A lot of features were applied to the Protocol Buffers interface to bring it closer to the features provided in the HTTP interface, but these are only available on the 'master' branch. You'll have to use the master branch of both the client an

Re: not working server generated object keys in riak-erlang-client

2011-05-07 Thread Andrew Thompson
On Sat, May 07, 2011 at 03:47:02PM +0300, Dmitry Rozhkov wrote: > Hi! > > I've just tried to put an object without a key as described in the docs, but > this feature doesn't seem to work (sasl-error.log attached): > I'm assuming both the client and server are running latest from git, right? The

not working server generated object keys in riak-erlang-client

2011-05-07 Thread Dmitry Rozhkov
Hi! I've just tried to put an object without a key as described in the docs, but this feature doesn't seem to work (sasl-error.log attached): == 1> Object = riakc_obj:new(<<"boss_db_test_parent_models">>, undefined, <<"first">>). {riakc_obj,<<"boss_db_test

Re: In riak erlang client, why do we have to surround the parameter with << and >> ?

2011-02-03 Thread Wilson MacGyver
it's here http://www.erlang.org/doc/reference_manual/expressions.html#id75794 On Thu, Feb 3, 2011 at 9:13 PM, Joshua Partogi wrote: > Hi, > > In riak erlang client, why do we have to surround the parameter with << and >>> ? I can not find what this means in erl

In riak erlang client, why do we have to surround the parameter with << and >> ?

2011-02-03 Thread Joshua Partogi
Hi, In riak erlang client, why do we have to surround the parameter with << and >> ? I can not find what this means in erlang documentation. Thanks heaps for your help. Kind regards, Joshua. -- http://twitter.com/jpartogi ___ riak-users

riak-erlang-client terminate/2

2011-01-19 Thread Anthony Molinaro
Hi, I was working on a supervisor and connection pool for some riak-erlang-client connections, and noticed that the terminate/2 is empty. Is there a reason terminate/2 isn't the opposite of init/1 as specified in the gen_server documentation? (ie, the init function actually connects,

Re: riak-erlang-client

2011-01-11 Thread David Smith
On Mon, Jan 10, 2011 at 4:58 PM, Anthony Molinaro wrote: > > > The leex/yecc work and most recent active development has been happening > on freke's fork, but I've merged his changes and the basho iolist changes > onto my fork, and am working to try to get freke to merge my changes over. I've add

Re: riak-erlang-client

2011-01-10 Thread Dan Reverri
it's own separate > > thing from the mainline (everything downstream of Nick Gerakine's > original > > implementation). I use the mainline for other projects which I also want > > to use riak-erlang-client with. So the fact that it had it's own > > implem

Re: riak-erlang-client

2011-01-10 Thread Anthony Molinaro
ost people have abandoned protobuffs in favor of thrift, but there are a few of us who use it and are mostly forks of ngerakines at this point. I only tend to re-evaluate whenever I need to update software, so only recently notice that there are 2-3 people adding features into erlang_protobuffs mostly

Re: riak-erlang-client

2011-01-10 Thread David Smith
> On Fri, Jan 07, 2011 at 03:57:45PM -0800, Anthony Molinaro wrote: >> some minor iolist functions).  The mainline has had some very nice recent >> features, the handrolled parser was replaced with a leex/yecc one, and >> support has been added for many protobuff features (like booleans, enums, >>

Re: riak-erlang-client

2011-01-10 Thread Anthony Molinaro
ginal > implementation). I use the mainline for other projects which I also want > to use riak-erlang-client with. So the fact that it had it's own > implementation caused some conflicts. Thus I did the work to hand merge > the changes from the basho tree into the mainline

Re: riak-erlang-client

2011-01-07 Thread Anthony Molinaro
went to bitbucket, then when it came back was it's own separate thing from the mainline (everything downstream of Nick Gerakine's original implementation). I use the mainline for other projects which I also want to use riak-erlang-client with. So the fact that it had it's own impleme

Re: riak-erlang-client

2011-01-07 Thread Dan Reverri
be specified as binaries. I'll fix that now. Thanks, Dan Daniel Reverri Developer Advocate Basho Technologies, Inc. d...@basho.com On Fri, Jan 7, 2011 at 3:17 PM, Anthony Molinaro < antho...@alumni.caltech.edu> wrote: > Hi, > > I recently forked riak-erlang-client

riak-erlang-client

2011-01-07 Thread Anthony Molinaro
Hi, I recently forked riak-erlang-client to use the mainline erlang_protobuffs (or at least a fork of it). In case any users out there are interested here they are. https://github.com/djnym/riak-erlang-client https://github.com/djnym/erlang_protobuffs So far they work great for me, and allow

Re: Install question about riak-erlang-client

2010-12-11 Thread Mark Phillips
ation got me stuck >> > with an unusable client. >> > >> > The server is started and seems to run. So I grabbed the >> > riakc-1.0.1 package, and it didn't even compile: >> > >> > x...@shanghai:~/project-workspace/erlang/basho-riak-erlang-c

Re: Install question about riak-erlang-client

2010-12-10 Thread Xiaopong Tran
#x27;t even compile: > > > > x...@shanghai:~/project-workspace/erlang/basho-riak-erlang-client-a1545e5$ > > make > > ./rebar get-deps > > ==> basho-riak-erlang-client-a1545e5 (get-deps) > > Pulling protobuffs from {hg,"http://bitbucket.org/basho/proto

Re: Install question about riak-erlang-client

2010-12-10 Thread Xiaopong Tran
try out Riak as our > system is also in Erlang. But the first installation got me stuck > with an unusable client. > > The server is started and seems to run. So I grabbed the > riakc-1.0.1 package, and it didn't even compile: > > x...@shanghai:~/project-workspace/erlan

Install question about riak-erlang-client

2010-12-10 Thread Xiaopong Tran
oject-workspace/erlang/basho-riak-erlang-client-a1545e5$ make ./rebar get-deps ==> basho-riak-erlang-client-a1545e5 (get-deps) Pulling protobuffs from {hg,"http://bitbucket.org/basho/protobuffs";, "protobuffs-0.5.0"} requesting all changes adding changesets

Re: Re: riak-erlang-client install error

2010-09-30 Thread Tetsuya
Hi Dan, I installed Mercurial on my system. And set the environment. "setenv LANG C" It worked. Thanks. Tetsuya - Original Message - >Date: Tue, 28 Sep 2010 18:18:47 -0700 >Subject: Re: riak-erlang-client install error >From: Dan Reverri >To: Tetsuya >Cc: r

Re: riak-erlang-client install error

2010-09-28 Thread Dan Reverri
Hi Tetsuya, Do you have Mercurial installed on your system? Thanks, Dan Daniel Reverri Developer Advocate Basho Technologies, Inc. d...@basho.com On Tue, Sep 28, 2010 at 6:12 PM, Tetsuya wrote: > Dear, > > I install riak-erlang-client on my server today. > But I bump into

riak-erlang-client install error

2010-09-28 Thread Tetsuya
Dear, I install riak-erlang-client on my server today. But I bump into errors. My server can't access the Internet. /* information about errors */ --- [ riak-erlang-client]# make ./rebar get-deps ==> riak-erlang-client (get-deps) Pulling protobuffs from {hg,"http://bitbuc

Re: riak-erlang-client install error

2010-09-28 Thread Jon Meredith
9/28/10 6:27 AM, Tetsuya wrote: hello, I install riak-erlang-client on my server today. But I bump into errors. My server can't access the Internet. /*/information about an error/*/ --- [xxxx riak-erlang-client]# make ./rebar get-deps ==> riak-erlang-client (get-deps) Pulling protobu

riak-erlang-client install error

2010-09-28 Thread Tetsuya
hello, I install riak-erlang-client on my server today. But I bump into errors. My server can't access the Internet. /*/information about an error/*/ --- [ riak-erlang-client]# make ./rebar get-deps ==> riak-erlang-client (get-deps) Pulling protobuffs from {hg,"http://bitbuc

R: RE: riak-erlang-client: riakc_pb_socket.erl:72: type ctx() > undefined

2010-09-10 Thread matteo.redae...@libero.it
Many Thanks Now it works! I use Erlang R14A & debian testing ... Regards Matteo Messaggio originale Da: mike.liv...@sellingsource.com Data: 09/09/2010 18.05 A: "Dan Reverri", "matteo.redae...@libero.it" Cc: "riak-users@lists.basho.com&

  1   2   >