looking for new riak-js maintainer

2012-03-02 Thread francisco treacy
Hi all, I am taking on a new role at my company, and unfortunately cannot find enough time to pursue riak-js. It's been a long (and fun) ride, and I'm kinda sad to have to announce this. A complete Javascript rewrite ( https://github.com/frank06/riak-js/tree/js ) is 90% there but I really can't f

Re: documents disappear from riak search index

2012-01-31 Thread francisco treacy
se to be search-related. I did this for all 3 nodes in the cluster. I did health-checks, nothing abnormal... enough disk space, no resource spikes, all transfers complete... I don't know. Things seem to be normal, or maybe I'm not enough of a mad scientist to notice it. Should I need s

Re: broken values in luwak

2012-01-21 Thread francisco treacy
the first ancestor doesn't give you anything then keep moving down the > list.  Otherwise, if you do find the data you are looking for let me know > and we'll see if we can't get your file object fixed. > > -Ryan > > On Thu, Jan 12, 2012 at 2:12 PM, francisco treacy

Re: broken values in luwak

2012-01-14 Thread francisco treacy
ep moving down the > list.  Otherwise, if you do find the data you are looking for let me know > and we'll see if we can't get your file object fixed. > > -Ryan > > On Thu, Jan 12, 2012 at 2:12 PM, francisco treacy > wrote: >> >> Hi Kelly, >> >>

Re: documents disappear from riak search index

2012-01-14 Thread francisco treacy
time to go digging around. The workaround is, well, a workaround, but it let us move on. I'll keep a special eye on this until it happens again, and let's definitely keep each other posted. Thanks, Francisco > On Thu, Jan 12, 2012 at 1:04 PM, francisco treacy > wrote: >> >

Re: broken values in luwak

2012-01-12 Thread francisco treacy
ghlin : > Francisco, > > Is it the case that you have already tried to force read repair on the file > chunks and are still seeing these errors? > > Kelly > > On Jan 12, 2012, at 10:57 AM, francisco treacy wrote: > >> Hi, >> >> One of my users is preparing a

Re: documents disappear from riak search index

2012-01-12 Thread francisco treacy
might be correlated such as spike in load, faulty disks, node > join/leave/remove, node down/up, etc. > > On Tue, Jan 10, 2012 at 11:31 AM, francisco treacy > wrote: >> >> 2012/1/10 Ryan Zezeski : >> > When you say "doesn't show up on the search query

broken values in luwak

2012-01-12 Thread francisco treacy
Hi, One of my users is preparing an exam but can't load an image because Luwak is serving it broken (i.e. responds with HTTP 200; 0 bytes) Visibly caused by a non-existing chunk of that file on that partition. I would've expected read-repair to kick in and update the value. But it keeps on servin

Re: documents disappear from riak search index

2012-01-10 Thread francisco treacy
t find anything related to search. Where else could I look? Do you have any idea what could be causing this behaviour? Francisco > > On Tue, Jan 10, 2012 at 4:16 AM, francisco treacy > wrote: >> >> Hi all, >> >> I am running (still) 0.14.2 in production, and usin

Re: documents disappear from riak search index

2012-01-10 Thread francisco treacy
Around 5% of the keys on that bucket are missing from the search results. Not reassuring. 2012/1/10 francisco treacy : > Hi all, > > I am running (still) 0.14.2 in production, and using Riak Search to > index certain buckets. Those buckets have the Riak Search pre-commit > hook en

documents disappear from riak search index

2012-01-10 Thread francisco treacy
Hi all, I am running (still) 0.14.2 in production, and using Riak Search to index certain buckets. Those buckets have the Riak Search pre-commit hook enabled. Once in a while I get complaints of missing documents from my clients, and it just happened. I checked and the document: - is correctly

Re: Luwak EOL

2012-01-03 Thread francisco treacy
A much more simplistic approach (depending on your write patterns and amount of nodes) could make use of rsync. It is used here combined with inotify: http://denimboy.posterous.com/quick-bash-script-uses-inotify-and-rsync-to-m Sounds like in the right direction for our use-case. Francisco 2012

Re: Luwak EOL

2011-12-19 Thread francisco treacy
I can't say I'm thrilled to hear this. We use Luwak extensively. > While the idea of Luwak was interesting, we ultimately decided that it > wasn’t the architectural path we wanted to pursue for storing larger > values in Riak. Does this mean there is still an intention to support storing larger v

ad-hoc queries

2011-12-02 Thread francisco treacy
Hi riak-users, I just tweeted this... but here is probably the best place to ask: Do you regularly ad-hoc query your production data? I'm actually interested in finding out how people perform these queries. Use client libraries in a REPL, or scripts? Erlang by attaching to a node? Post the full-

Re: Counting the number of items in a bucket

2011-11-24 Thread francisco treacy
Actually, I think it's less efficient (more data sent over the wire) – but happens to be faster. The client is simply buffering key lengths from a chunked response, which happens to be way faster than supplying keys=true. I haven't looked at how this is implemented in Riak. 2011/11/24 Soren Hanse

Re: Counting the number of items in a bucket

2011-11-22 Thread francisco treacy
I would probably stream keys to the client and count them there (it's the most efficient method I can think of) If you have node.js installed, do this: npm install riak-js@latest node -e "require('riak-js').getClient({ port: 8098 }).count('bucket');" 2011/11/21 Stephen Bennett > I have a buck

Re: simulating physical node crash

2011-11-17 Thread francisco treacy
k or so ago but haven't seen a reply yet. > > So indeed, does anyone know what's causing this error and how we can avoid > it? > > Regards, > Martin. > > > > On 28 Sep 2011, at 20:39, francisco treacy < > francisco.tre...@gmail.com> wrot

mapred syntax error after delete

2011-10-31 Thread francisco treacy
Hi all, There seems to be an issue when executing a Map/Reduce just after a delete operation. (It works fine after waiting some seconds). Using Riak 1.0.1. Please see: https://github.com/frank06/riak-js/issues/97#issuecomment-2575216 Thanks, Francisco

Re: script erlang contrib function

2011-10-03 Thread francisco treacy
Woah! cool, thanks! 2011/10/3 Russell Brown > > On 3 Oct 2011, at 21:58, francisco treacy wrote: > > I was giving the bucket_inspector example because I happen to need it now. > I know I can write it in another lang in one minute, but since I'll be using > other Erlan

Re: script erlang contrib function

2011-10-03 Thread francisco treacy
sco 2011/10/3 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

Re: script erlang contrib function

2011-10-03 Thread francisco treacy
clip/LR04fvr5rXWvT__G > > The value for "cookie" will be "riak" unless you've changed it. > > -- > Greg > Clipboard > > On Monday, October 3, 2011 at 6:20 AM, francisco treacy wrote: > > Please? at least a pointer! > > 2011/9/29 francisco treacy

Re: script erlang contrib function

2011-10-03 Thread francisco treacy
Please? at least a pointer! 2011/9/29 francisco treacy > I'm wanting to use the `bucket_inspector` contrib function (but have zero > Erlang experience). > > Following the "usage" page, I do the following: > > $ /opt/riak/erts-5.7.5/bin/erlc -o /tmp /tmp/buc

script erlang contrib function

2011-09-29 Thread francisco treacy
I'm wanting to use the `bucket_inspector` contrib function (but have zero Erlang experience). Following the "usage" page, I do the following: $ /opt/riak/erts-5.7.5/bin/erlc -o /tmp /tmp/bucket_inspector.erl$ riak attach(riak@127.0.0.1)1> code:add_path("/tmp").(riak@127.0.0.1)2> m(bucket_inspecto

Re: simulating physical node crash

2011-09-28 Thread francisco treacy
is, should've I used W=3? During the failure, many assets were returning 404s which triggered read-repair (and were ok upon subsequent request), but no luck with the Map/Reduce function (it kept on failing). Could it have something to do with Riak Search? Thanks, Francisco 2011/9/26 fran

simulating physical node crash

2011-09-26 Thread francisco treacy
Hi all, I have a 3-node Riak cluster, and I am simulating the scenario of physical nodes crashing. When 2 nodes go down, and I query the remaining one, it fails with: {error, {exit, {{{error, {no_candidate_nodes,exhausted_prefist, [{riak_kv_mapred_plan

Re: Interesting problem with riaksearch indexes

2011-08-23 Thread francisco treacy
Hmmm, definitely not great... but thanks Ryan for the explanation Francisco 2011/8/23 Ryan Zezeski > Gordon, > > The reason for the nondeterministic behavior is two-fold. > > 1. For performance reasons Search only ever reads from 1 node (R=1) > > 2. As an attempt to balance load and reduce vno

Re: can't enable luwak?

2011-08-13 Thread francisco treacy
ns. > > -Ryan > > On Sun, Jul 31, 2011 at 5:31 PM, francisco treacy < > francisco.tre...@gmail.com> wrote: > >> Hi all, >> >> I enabled Luwak in all three nodes of my cluster. Riak Search 0.14.2. >> >> But there is one that doesn't pick it u

Re: search by Link or meta tags in whole bucket

2011-08-04 Thread francisco treacy
Something along the lines of: function(v) { if (~v.values[0].metadata.Links.indexOf(...)) { return [v.key]; } return []; } 2011/8/4 Giancarlo Frison : > Hi all, > I'm wondering if it is possible to find keys that match specific link tag or > meta values inside a bucket. > For instance

Re: delete all data

2011-08-02 Thread francisco treacy
bin/riak stop rm -fr data bin/riak start is one option. Francisco 2011/8/2 Lyes Amazouz : > Hi all! > How can I delete all teh data stored in a Riak store > Thanks! > ___ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/m

can't enable luwak?

2011-07-31 Thread francisco treacy
Hi all, I enabled Luwak in all three nodes of my cluster. Riak Search 0.14.2. But there is one that doesn't pick it up. What could be happening... any pointers? $ diff riak1/etc/app.config riak2/etc/app.config 11c11 < {http, [ { "192.168.10.228", 8098 }, { "127.0.0.1", 8098 } ]}, --

Re: scp data

2011-07-31 Thread francisco treacy
art nodes A, B, C, D > Nodes A, B, C, D will form a cluster that is a clone of nodes 1, 2, 3, 4 > > Limitations: > Backups must be restored to the same number of nodes from which they were > taken > Thanks > Dan > Sent from my iPhone > On Jul 29, 2011, at 3:22 PM, francisco

scp data

2011-07-29 Thread francisco treacy
Hi all, I'm setting up a brand-new staging server, with Riak 0.14.2. As I want to get all production data, I thought I could scp the data directory into the new one (besides the ring dir). So that's what I did, and then started the staging db for the first time. It doesn't really work though. Ma

Re: riak-ql

2011-07-27 Thread francisco treacy
PHP >> dev)** >> >><http://www.loomlearning.com/> *Jonathan Langevin* >> Systems Administrator *Loom Inc.* >> Wilmington, NC: (910) 241-0433 - jlange...@loomlearning.com - >> www.loomlearning.com - Skype: intel352 >> >> ** >> >&g

Re: riak-ql

2011-07-27 Thread francisco treacy
Hi Kevin > Francisco - How's performance on riak-ql? > > The problem I see with riak-ql and Antonio's thing is that they're > invariably going to be slow. > Javascript Map/Reduce over an entire bucket is just not suitable for inline > requests. No-one said you had to run it on an entire bucket. I

Re: riak-ql

2011-07-25 Thread francisco treacy
n result; }).run() riak-ql is basically adding some query sugar (where, &&) on top of JSONSelect... which you can try it out here: http://jsonselect.org/#tryit 2011/7/25 Mark Phillips : > Hey Francisco, > > I for one would be interested in learning some more specifics on how >

riak-ql

2011-07-23 Thread francisco treacy
Hey all, Just wondering... is anyone using, or have tried out riak-ql? https://github.com/frank06/riak-ql Not because I developed it -- but I'm regularly making use of it and I think it kicks ass. Especially in the repl in combo with riak-js. What do you guys think? Francisco ps: really curiou

Re: Riak Recap for July 15 - 17

2011-07-19 Thread francisco treacy
FYI: https://twitter.com/#!/frank06/status/83507142509871104 2011/7/19 Jonathan Langevin > In response to update 4, here is information on what Chef/Cookbook is (for > those like me that were unaware): > http://wiki.opscode.com/display/chef/About > * > > > > Jo

Re: db.save() vs. db.update()

2011-07-06 Thread francisco treacy
Didn't have a close look, but it seems like a bug in riak-js. Please open an issue at https://github.com/frank06/riak-js/issues If you have any doubt, *always* prefer `db.get()` and `db.save()`. I kinda regret having agreed to include `db.update()`. If it's causing confusion I will have to remove

Re: Future plans

2011-07-01 Thread francisco treacy
Stumbled on it the other day: http://blog.notdot.net/2009/11/Damn-Cool-Algorithms-Spatial-indexing-with-Quadtrees-and-Hilbert-Curves 2011/7/1 Sean Cribbs : > If you can't wait for native geo-spatial indexes, there are also numerous > techniques for creating them over distributed hash tables (lik

Re: luwak not properly overwriting data

2011-05-30 Thread francisco treacy
e/bug-800 > -Ryan > > On Sun, Mar 20, 2011 at 4:04 PM, francisco treacy > wrote: >> >> Hi all, >> >> Any updates regarding this bug?  It's constantly biting me. >> >> Thanks! >> Francisco >> >> >> 2010/11/30 David Smith : &

Re: Riak Recap for May 20 - 22

2011-05-23 Thread francisco treacy
I'd like to add that riak-js 0.4.0rc3 has been released. I encourage everybody to update from rc2 (critical bug fixed). We should be hitting 0.4.0 final soon I hope! https://github.com/frank06/riak-js 2011/5/23 Mark Phillips : > Afternoon, Evening, Morning to All - > > For today's Recap: A con

Re: Streaming a binary file from riak via node.js to client

2011-05-21 Thread francisco treacy
>> >> I checked that image is a Buffer, I tried console.log(image instanceof >> Buffer); and the output was "true". Any other ideas on how I could do >> what I´m trying? I built riak from source, if that makes any >> difference. >> >> Thank you! >&g

Re: Streaming a binary file from riak via node.js to client

2011-05-21 Thread francisco treacy
; > On Sat, May 21, 2011 at 1:01 PM, francisco treacy > wrote: >> and which node.js version? >> >> >> 2011/5/21 francisco treacy : >>> That should work, but i'll take a look at it. Which versions of >>> riak-js and Riak are you using? >>>

Re: Streaming a binary file from riak via node.js to client

2011-05-21 Thread francisco treacy
and which node.js version? 2011/5/21 francisco treacy : > That should work, but i'll take a look at it. Which versions of > riak-js and Riak are you using? > > > 2011/5/21 Max : >> After watching the presentation about how to use node.js with riak, I >> built s

Re: Streaming a binary file from riak via node.js to client

2011-05-21 Thread francisco treacy
That should work, but i'll take a look at it. Which versions of riak-js and Riak are you using? 2011/5/21 Max : > After watching the presentation about how to use node.js with riak, I > built some small application on node.js using the express framework. > > In riak files are stored via a PHP fro

Re: list luwak objects ?

2011-04-28 Thread francisco treacy
Using riak-js I would do: db.add({ bucket: 'luwak_tld', key_filters: [["matches", "regexp"]] }).reduce({ language: 'erlang', module: 'riak_kv_mapreduce', function: 'reduce_identity', keep: true }).run() Francisco 2011/4/28 Drew Whitehouse : > Hi, > Is there any way to list the objects stored in

Re: Need Help regarding Riak JavaScript client

2011-03-28 Thread francisco treacy
You may find this handy: https://github.com/frank06/riak-admin/blob/master/upload.sh F 2011/3/28 Adam Hunter : > Hey, > After downloading the necessary files, from the directory they are in, you > would use: >     curl -X POST -H"Content-Type: application/javascript" > http://127.0.0.1:8098/riak/

Re: luwak not properly overwriting data

2011-03-20 Thread francisco treacy
place for this bug.  In the meantime, you can > perform a delete before each write or use my branch. > https://github.com/rzezeski/luwak/tree/bug-800 > -Ryan > > On Sun, Mar 20, 2011 at 4:04 PM, francisco treacy > wrote: >> >> Hi all, >> >> Any update

Re: luwak not properly overwriting data

2011-03-20 Thread francisco treacy
res... > > D. > > On Tue, Nov 30, 2010 at 1:30 AM, francisco treacy > wrote: >> I'm running into this issue often...  Does Target Milestone: 'Dakota' >> mean this bugfix could make it into 0.14? >> >> Thanks, >> Francisco >> >>

Re: luwak questions

2011-02-23 Thread francisco treacy
2011/2/23 Bryan Fink : > On Tue, Feb 22, 2011 at 12:17 PM, francisco treacy > wrote: >>> db.add({ bucket: 'luwak_tld', key_filters: [['starts_with', >>> 'e276814e96e0616eb7c07d3bb744d333']]}).map(function(v) { return [1] }).run() >> POS

luwak questions

2011-02-22 Thread francisco treacy
Hi all, We are using Luwak to store assets, ranging from 2k CSS files up to 30+ MB video files. Every key in Luwak is prefixed with an id (e.g. e276814e96e0616eb7c07d3bb744d333-216.jpg). In order to manage these assets, I'd like to query Luwak for keys starting with some id. As I found the 'luwak

Re: 0.14 OSX riaksearch in inconsistent state

2011-02-18 Thread francisco treacy
https://issues.basho.com/show_bug.cgi?id=970 Francisco 2011/2/18 Gary William Flake : > I just ran a script on a my dev machine to remove everything in the > local riaksearch instance.  In the process, I found something very > strange.  Specifically, there exists objects in my instance that > can

Re: 0.14 crash on OS X

2011-02-17 Thread francisco treacy
ee what happens. > > D. > > On Thu, Feb 17, 2011 at 10:09 AM, francisco treacy > wrote: >> Riak Search 0.14.0 just inexplicably went down, and pinging takes very >> long. Trying to `start` it also takes as long. >> >>  =>  time bin/riaksearch ping >> Node &#x

0.14 crash on OS X

2011-02-17 Thread francisco treacy
Riak Search 0.14.0 just inexplicably went down, and pinging takes very long. Trying to `start` it also takes as long. => time bin/riaksearch ping Node 'riaksearch@127.0.0.1' not responding to pings. real0m14.205s user0m0.143s sys 0m0.048s => ps -ef | grep beam 501 95991 95990

Re: riak search from within node.js

2011-02-10 Thread francisco treacy
t I > would suggest that you add 'sort' as another element in Meta.queryProperties > as well. > > Thanks again, > -- GWF > > > On Feb 9, 2011, at 2:28 PM, francisco treacy wrote: > >> Gary, >> >> Check out the 'search' branch on github:

Re: riak search from within node.js

2011-02-09 Thread francisco treacy
Gary, Check out the 'search' branch on github: https://github.com/frank06/riak-js/blob/search/src/http_client.coffee#L133 (follow development instructions on the README to work with the bleeding edge) I'd love to hear some feedback. Docs updated at http://riakjs.org. For anyone interested in ria

Re: to escape or not to escape?

2010-12-01 Thread francisco treacy
e ['bucket', 'r4nd...@b0e-key'] does not exist.) Base64url-encoding is not an option for us, because we heavily rely on meaningful keys. Thanks, Francisco 2010/8/13 francisco treacy : > 2010/8/12 Bryan Fink : >> Hi, Francisco.  I've run into this myself in deve

Re: luwak not properly overwriting data

2010-11-30 Thread francisco treacy
n > Daniel Reverri > Developer Advocate > Basho Technologies, Inc. > d...@basho.com > > > On Thu, Nov 18, 2010 at 2:41 PM, francisco treacy > wrote: >> >> When I PUT data to Luwak more than once and subsequent requests have a >> smaller size, it only ch

Re: riak crash

2010-11-29 Thread francisco treacy
Interesting. I only ran into this issue once, but I remember what I was doing. So I'll try to reproduce it later tonight, and if I succeed I'll send you more info -- to eventually pass on to the Erlang folks. Thanks, Francisco 2010/11/29 David Smith : > Thanks for the info. > > A more careful

Re: riak crash

2010-11-29 Thread francisco treacy
: <<"0.4.1">> runtime_tools_version : <<"1.8.3">> crypto_version : <<"1.6.4">> os_mon_version : <<"2.2.5">> sasl_version : <<"2.1.9">> stdlib_version : <<"1.16.5">> kernel_versi

riak crash

2010-11-29 Thread francisco treacy
Some days ago, Riak crashed on my dev machine. All I know is that several concurrent writes could have been happening at the time of the crash (possibly around 30). https://gist.github.com/717015 Could somebody enlighten me here... what exactly went wrong? Thanks, Francisco

list keys in luwak

2010-11-21 Thread francisco treacy
>From what I see at https://github.com/basho/luwak/blob/master/src/luwak_wm_file.erl , it looks like issuing a GET /luwak would return properties just like any bucket. But it doesn't. Am I missing something? (couldn't find it listed as an issue on Bugzilla) => curl localhost:8098/luwak/?keys=t

Re: luwak not properly overwriting data

2010-11-19 Thread francisco treacy
ug.cgi?id=800 > Thanks, > Dan > Daniel Reverri > Developer Advocate > Basho Technologies, Inc. > d...@basho.com > > > On Thu, Nov 18, 2010 at 2:41 PM, francisco treacy > wrote: >> >> When I PUT data to Luwak more than once and subsequent requests have a

luwak not properly overwriting data

2010-11-18 Thread francisco treacy
When I PUT data to Luwak more than once and subsequent requests have a smaller size, it only changes the first chunk of bytes. Maybe this gist explains it better: https://gist.github.com/705789 (Needs riak-js tip. The assertion fails, and the received data on getLarge is: "THIS ONLY OVERWRITES T

Re: mapreduce

2010-11-10 Thread francisco treacy
What version of Riak are you using? I tried it on 0.13, and I get [] as a result. Not sure what happens when you don't return though. I would've written: function(value, keyData, arg){var data = Riak.mapValuesJson(value)[0];if(data.expires === 0){return [value.key]} else { return [] } } 2010/1

Re: RiakSearch Benchmark Test Invitation.

2010-10-28 Thread francisco treacy
Very good idea! 2010/10/28 Prometheus WillSurvive : > Hi All, > We have prepare wikipedia database output ready to submit RiakSearch. It is > XML and described format for solr submit. Each file has 20.000 Document and > totaly 15 xml files. Each file around 44 MB. > You can submit all XML 's =    

Re: Riak 0.13 Released!

2010-10-11 Thread francisco treacy
Hmm I was about to chill out... but this is just too good not to try it out - now. Congratulations! 2010/10/11 Mark Phillips : > Hey All, > > Riak 0.13 is officially available for download! > > This is a huge release and includes, among other things, Riak Search > and enhancements and bug fixes

Re: Riak Function Contrib

2010-10-05 Thread francisco treacy
Very, very good idea! 2010/10/5 Mark Phillips : > Hey All, > > We are pushing to get some more resources out the door to help the > community better use Riak. Specifically, we are doing tons of work at > the moment to make MapReduce in Riak more robust and as simple to use > as possible. This is

Re: Pervasive replication

2010-10-05 Thread francisco treacy
I imagine that if you can afford clusters in multiple datacenters then you should be able to afford EnterpriseDS. Or is it prohibitively expensive? I have no idea. But afaics that's Basho's revenue model. Francisco 2010/10/5 Jason J. W. Williams : > Maybe the community can come up with a solut

Re: Map reduce timeout

2010-10-05 Thread francisco treacy
If you're going to use "inputs\":\"people\" then Riak 0.13 is *definitely* recommended. It's way faster listing keys. You might want to try a release candidate or tip. Francisco 2010/10/5 Germain Maurice : >  Hello everybody, > > I'm trying to execute some mapreduce jobs and i have a problem with

Re: OS X install issue

2010-09-24 Thread francisco treacy
If you want to get Riak running on OS X, wouldn't it be less hassle to download it from here: http://downloads.basho.com/riak/riak-0.12/ ? The OS X version is ready to use (untar and bin/riak start), if i recall correctly. 2010/9/24 Aleksandar Radulovic : > Hi, > > I would highly recommend using

Re: OS X install issue

2010-09-24 Thread francisco treacy
Are you using the tarball, or have you done `hg clone http://hg.basho.com/riak`? I don't think Basho provides the .hg folder in the tarball. Francisco 2010/9/24 Mark Jarecki : > Cleared it, to no avail. > > Get exactly the same error message: > >        abort: There is no Mercurial repository he

Re: reduce headaches

2010-09-20 Thread francisco treacy
Kevin and Sean, 2010/9/20 Kevin Smith : > js_reload will force a reload of all the Javascript VMs. This will dump all > state, including any accumulated anonymous functions. We do cache anonymous > functions to reduce the number of JS calls we have to make but it's possible > there's a bug in t

Re: reduce headaches

2010-09-20 Thread francisco treacy
The rest of the weirdness could have come from my side (possibly badly coded reduce functions). Better error reporting, as well as guidelines and gotchas when building reduces and advanced examples, would definitely help. What I can say right now is that I'll be closely following this matter,

reduce headaches

2010-09-19 Thread francisco treacy
So, I've had a weekend plagued of reduce function errors and general weirdness, probably due to my ignorance on the subject. Functions seem to be cached, which makes total sense. But it happened to me several times sending a *different* function yet Riak would completely ignore it and keep on runn

Re: Riak on EC2, security etc

2010-08-31 Thread francisco treacy
Hi Tim, The nginx trick is to send an 'X-Accel-Redirect' header from your app code, which will cause an internal redirect within nginx - and so use it to serve the resource. In my node app this is what I've got: # here i check for authorization credentials response.header 'X-Accel-Redirect',

Re: list_keys is less bad

2010-08-24 Thread francisco treacy
Thanks Justin. It's certainly handy for those obliged CRUD screens of a webapp... Can't wait to try it out! 2010/8/24 Justin Sheehy : > On Mon, Aug 23, 2010 at 10:05 PM, Alexander Sicular > wrote: > >> Three cheers! > > :-) > >> Git clone && make all && make rel > > It looks like they haven't

Re: Riak Recap for 8/13 - 8/15

2010-08-16 Thread francisco treacy
> 10) Q --- Has anyone got experience with making Rails work with object > ids that contain periods? Such as email addresses, for example? I'm > finding I need to encode the . as %252E so that rails doesn't see the > period when I use the id in a URL, which is fine, but then when I use > the id wi

Re: to escape or not to escape?

2010-08-13 Thread francisco treacy
2010/8/12 Bryan Fink : > Hi, Francisco.  I've run into this myself in developing a recent > application.  I've been loathe to change the Riak behavior, for > worries of breaking existing client expectations.  The original > escaping was put in to deal with objects that had been created by the > nat

to escape or not to escape?

2010-08-11 Thread francisco treacy
I have a doubt regarding links and URI-escaping in Riak. Say I create document 'test/first' with two links (notice %40 is character @ uri-escaped): => 'test/second%40basho.com' => 'test/th...@basho.com' $> curl -X PUT -H "content-type:text/plain" \ -H "Link: ; riaktag=\"foo\", ; riaktag=\"bar

Re: Running multiple Riak instances.

2010-07-31 Thread francisco treacy
Misha, I *think* I had the same problem. Perhaps you started your nodes when they were still called 'riak', and that may be the reason why -progname remains? Did you update the ring file? This worked for me: riak-testing/bin/riak-admin reip r...@127.0.0.1 test...@127.0.0.1 riak-production/bin/r

Re: parse javascript data into riak

2010-07-05 Thread francisco treacy
I assume you're using the browser-version of riak-js. If you're able to get that Javascript snippet with jQuery once the DOM has loaded, it would just be a matter of extracting / obtaining data from the pageTracker object and use riak-js to store that in Riak. Francisco 2010/7/5 Norman Khine :

Re: link limitations

2010-06-30 Thread francisco treacy
ag="previous", ; rel="up" > < Last-Modified: Wed, 30 Jun 2010 14:02:55 GMT > < ETag: 3uMSzFK8guChtOhlvtx99g > < Date: Wed, 30 Jun 2010 14:03:32 GMT > < Content-Type: text/plain > < Content-Length: 11 > < > * Connection #0 to host localhost

link limitations

2010-06-29 Thread francisco treacy
Hi all, We're developing social features in our app that involve Twitter-like relations between users. As we have a 'users' bucket, the initial implementation is to add links to following users (and link followers back) in order to create a two-way relationship. User A following > User

Re: schema design advise

2010-06-21 Thread francisco treacy
See Riak as a plain k/v store for saving, and later apply map/reduce for further analysis. > userId, partnerId, {products: [{productId: value, productName: value, > productPrice: value, productUrl: value, productDescription: value}, > ...]}, orderId, date For logging I would just make that a JSON

Re: broken links

2010-06-15 Thread francisco treacy
found' filtering in your > reduce phases since that'll be the first opportunity you have to deal with > the missing data. > > --Kevin > On Jun 15, 2010, at 4:30 AM, francisco treacy wrote: > >> Hi all, >> >> I have a document with some broken links (i.e

broken links

2010-06-15 Thread francisco treacy
Hi all, I have a document with some broken links (i.e. that point to a non-existent key), and want to apply a map/reduce there. var map = function(v, k, args) { ejsLog("/tmp/mr", "hello from map"); return [{from: "map"}] } db.link({ bucket: "highlights", keep: false }) .map({source: map})

Re: include mapByFields in riak by default

2010-06-12 Thread francisco treacy
t; Basho Technologies, Inc. >> http://basho.com/ >> >> On Jun 12, 2010, at 9:44 AM, francisco treacy wrote: >> >> > So what do you guys think? It is a bad idea? >> > >> > 2010/6/6 francisco treacy : >> >> I find myself using a lot this

Re: include mapByFields in riak by default

2010-06-12 Thread francisco treacy
So what do you guys think? It is a bad idea? 2010/6/6 francisco treacy : > I find myself using a lot this kind of functions (this one > inspired/borrowed from Sean Cribbs) - a sort of SQL's conditions > ("where"). > > Riak.mapByFields = function(value, keyData, fie

Re: ripple link bug

2010-06-08 Thread francisco treacy
bs : > Creating tags and using the wildcard when doing a link-walking query are two > different operations.  There is no default tag. > > Sean Cribbs > Developer Advocate > Basho Technologies, Inc. > http://basho.com/ > > On Jun 8, 2010, at 4:58 PM, francisco treacy wrot

Re: ripple link bug

2010-06-08 Thread francisco treacy
ies, Inc. > http://basho.com/ > > On Jun 8, 2010, at 4:48 PM, francisco treacy wrote: > >> The following code yields an exception >> >> item = client['items']['item'] >> catalog = client['catalogs']['test'] >> link

ripple link bug

2010-06-08 Thread francisco treacy
The following code yields an exception item = client['items']['item'] catalog = client['catalogs']['test'] link = item.to_link catalog.links << link catalog.store (...) /Users/ftreacy/.rvm/gems/ruby-1.9.1-p378/gems/riak-client-0.7.0/lib/riak/client/curb_backend.rb:63:in `perform': Expected [200,

[ANN] riak-js v0.2

2010-06-07 Thread francisco treacy
For those of you who are interested in using Riak from node.js (or the browser), I released riak-js v0.2: http://github.com/frank06/riak-js It features a new Map/Reduce API, among other changes and fixes. Available through github and npm: `npm install riak-js`. Francisco [announcement post at h

Re: doubt about encoding in map/reduce

2010-06-06 Thread francisco treacy
string mangling to occur and can trigger bad_encoding > errors as well. You can either checkout the latest erlang_js and replace your > existing version with the new copy or you can wait on Riak 0.11 and pick it > up then. > > --Kevin > On Jun 6, 2010, at 12:23 PM, francisco trea

include mapByFields in riak by default

2010-06-06 Thread francisco treacy
I find myself using a lot this kind of functions (this one inspired/borrowed from Sean Cribbs) - a sort of SQL's conditions ("where"). Riak.mapByFields = function(value, keyData, fields) { if(!value.not_found){ var object = Riak.mapValuesJson(value)[0]; for(field in fields) {

Re: ripple doesn't find Boolean

2010-06-06 Thread francisco treacy
more picky about resolving namespaces (try ::Boolean?). Second, I > probably need to make sure that the casting.rb file is eagerly loaded and not > lazily. > > Sean Cribbs > Developer Advocate > Basho Technologies, Inc. > http://basho.com/ > > On Jun 2, 2010, at 5:59 A

doubt about encoding in map/reduce

2010-06-06 Thread francisco treacy
I get {"error":"bad_encoding"} from map/reduce when I use non-ASCII characters: ftreacy @ ~ => curl -X PUT http://127.0.0.1:8098/riak/test/bug -H "Content-Type: application/json" -d @- {"city":"Buenos Aires"} ^D ftreacy @ ~ => curl -X POST http://localhost:8098/mapred -H "Content-Type: applic

Re: riak and The Beatles

2010-06-05 Thread francisco treacy
Check out the Riak Fast Track in the wiki at wiki.basho.com. IIRC there is an example with sample data from Google stocks. But I agree there should be more. Francisco 2010/6/5 Thomas Heller : > Howdy folks, > > I'm trying to get more into riak lately but my time is limited so I'm > still at the

ripple doesn't find Boolean

2010-06-02 Thread francisco treacy
My User model has some properties property :name, String property :email, String, :presence => true property :items, Array, :default => [] (...) Now when I want to use a Boolean: property :admin, Boolean I get the following: ruby-1.9.1-p378 > user = User.find('t...@gmail.com') NameErr

devise-ripple adapter

2010-05-29 Thread francisco treacy
For all you guys trying to use the awesome Devise authentication plugin for Rails... with Riak: http://github.com/frank06/devise-ripple It is working fine for me so far with many Devise modules (although due to Ripple lagging a bit behind egdy Rails versions, we need to stick to revision 9291ab).

  1   2   >