Re: Error: HTTP error 500: Error:

2012-03-01 Thread Russell Brown
On 1 Mar 2012, at 07:52, Norman Khine wrote: > I hade created a bucket 'users', which i then deleted through the > 'recon' interface (well i deleted all the keys within that bucket), > but now every time i try to push a new key, i get this error: > > { [Error: HTTP error 500: Error: > {precommit

Re: Error: HTTP error 500: Error:

2012-03-01 Thread Norman Khine
hi thanks for the reply, that was the issue, the search was put to false. On Thu, Mar 1, 2012 at 10:05 AM, Russell Brown wrote: > > On 1 Mar 2012, at 07:52, Norman Khine wrote: > > I hade created a bucket 'users', which i then deleted through the > 'recon' interface (well i deleted all the keys w

secondary indexes for timestamp

2012-03-01 Thread Norman Khine
Hello again, I am trying to figure out how to return my search results from this code, i am using the riak-js client: var time = +new Date(); var origin; db.enableIndex('users');

building riak on freebsd9, $ make rel produces this error "Makefile", line 164: Need an operator

2012-03-01 Thread Norman Khine
Hello, I am trying to build riak from the git repository $ git clone git://github.com/basho/riak.git $ cd riak $ git branch 1.1 origin/1.1 $ git checkout 1.1 $ make rel "Makefile", line 164: Need an operator "Makefile", line 166: Need an operator "Makefile", line 168: Need an operator "Makefile",

building riak on FreeBSD9

2012-03-01 Thread Norman Khine
Hello again, sorry to keep posting new threads, but i don't see the original post i made for this. anyhow, i followed couple of suggestions from the mailing list and this blog post: http://blog.harperdog.com/2010/12/17/riak-on-freebsd/, make rel work, but now get this error after doing: 282 gi

Re: building riak on FreeBSD9

2012-03-01 Thread Peta Bogdan
Hello, I had a similar issue with OpenBSD 5.0/amd64/riak-1.1.0 But I have took a manual approach on this situation, namely: 1. got to riak top level dir 2. cd deps/eleveldb/c_src/leveldb 3. sh build_detect_platform this will generate build_config.mk for your platform 4. edit build_config.mk

Re: secondary indexes for timestamp

2012-03-01 Thread Ryan Zezeski
Hi Norman, I see a couple of things potentially confusing you here. The first thing to understand is that Riak currently provides two methods for indexing/querying your data: Search and secondary indices (2i). They are not the same and are not compatible with each other. I'm going to assume you

Re: secondary indexes for timestamp

2012-03-01 Thread Norman Khine
Hi Ryan, Thanks for the reply. I will need to go an learn more before i take up any more of your time. On Thu, Mar 1, 2012 at 1:44 PM, Ryan Zezeski wrote: > Hi Norman, > > I see a couple of things potentially confusing you here.  The first thing to > understand is that Riak currently provides tw

Re: secondary indexes for timestamp

2012-03-01 Thread Norman Khine
OK, i got it, i did not enable in the conf file the backend ☺ curl http://localhost:8098/buckets/mybucket/index/field1_bin/val1 {"keys":["mykey1"]}% ☺ curl http://localhost:8098/buckets/mybucket/index/field2_int/1001 {"keys":["mykey1"]}%

Re: building riak on FreeBSD9

2012-03-01 Thread Norman Khine
from the IRC #riak i managed to get this fixed. as i was using zsh i had not installed bash, this is now done and then following this blog http://blog.harperdog.com/2010/12/17/riak-on-freebsd/ @hfalk said that the eleveldb build_deps.sh script assume 'make' is gnu make On Thu, Mar 1, 2012 at 1

Re: building riak on FreeBSD9

2012-03-01 Thread Andrew Thompson
There's also an adt-bsd-support branch for deps/eleveldb you didn't use, which would probably have solved this problem for both FreeBSD and OpenBSD. Andrew ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/ri

Re: building riak on FreeBSD9

2012-03-01 Thread TJ Ninneman
> http://blog.harperdog.com/2010/12/17/riak-on-freebsd/ Those instructions on there will work for Riak < 1.1. All Riak 1.1 dependancies (with the exception of leveldb) build without any modification. I'll post a followup post on that blog detailing the short instructions. Glad to see FreeBSD

Re: building riak on FreeBSD9

2012-03-01 Thread Andrew Thompson
I'm working on patching level and eleveldb, since we now run a fork of it anyway. I *had* been waiting to get my changes upstream, but that *still* hasn't happened. Andrew ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mai

Re: building riak on FreeBSD9

2012-03-01 Thread Norman Khine
yes i used it, but i did not use the gmake to build it. but thanks for pointing it out. On Thu, Mar 1, 2012 at 3:38 PM, Andrew Thompson wrote: > I'm working on patching level and eleveldb, since we now run a fork of > it anyway. I *had* been waiting to get my changes upstream, but that > *still*

Re: Writing with PW=quorum

2012-03-01 Thread Sean Cribbs
Sorry that this didn't make it to the list, I accidentally sent to Daniel privately. In short, PR and PW are checked *before* any read or write is initiated, so, in the case of a partitioned cluster, the write will never be sent to the sole primary partition that is available if PW=quorum. On dele

riakc_pb_socket:ping(Pid). giving error

2012-03-01 Thread Buri Arslon
Hi, I'm using riak with erlang client and haproxy. start_link/2 was successful but get_server_info is giving an error. http://dpaste.com/709996/ I googled but wasn't able to find any solution. Any ideas? Thanks, Buriwoy ___ riak-users mailing list ria

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.

Re: riakc_pb_socket:ping(Pid). giving error

2012-03-01 Thread Buri Arslon
Oh, never mind. It was haproxy config problem. Thanks! On Thu, Mar 1, 2012 at 9:39 AM, Buri Arslon wrote: > Hi, > > I'm using riak with erlang client and haproxy. start_link/2 was successful > but get_server_info is giving an error. > > http://dpaste.com/709996/ > > I googled but wasn't able to

Client wire compatibility between versions

2012-03-01 Thread Jacques
What is the client compatibility between the various versions of servers? For example, will the latest riak-java-client work against .14, 1.0 and 1.1? Will a PB client used during the .14 era work against the 1.0 and 1.1 servers? Thanks, Jacques ___ ria

Re: How many TB to be store in riak

2012-03-01 Thread Mark Phillips
2012/2/26 郎咸武 : > Hi Mark,firsrt thanks > If i usring file.erl r/w that big file, to store disk with zfs (Dynamic > File System). > How about this. Hmm. To be honest, I'm not sure if that would work, though I'm inclined to say no. Mark > thank you > > jason > > > > 在2012-02-24,"Mark Phillips"

Using Hybrid SSDs

2012-03-01 Thread Lauren Clarke
Could anyone give some advice on the advisability of using hybrid SSD drives (eg: Seagate Momentus 750) for node storage? I know nothing about the parameters that might influence the decision between platter, SSD or these hybrids and would appreciate some guidance. _

Re: Using Hybrid SSDs

2012-03-01 Thread Jeremiah Peschka
This is a great question! Hybrid SSDs like the Momentus XT line are great if you have a finite quantity of frequently accessed data - say you have a 500GB data set where 40GB is "hot" frequently accessed data and the other 460GB is cold, archival data. In this scenario, the Momentus XT is going

Re: Using Hybrid SSDs

2012-03-01 Thread Tryn Mirell
It also depends on what filesystem you're using. ZFS can use SSDs for the L2ARC cache, while having all your storage on slower drives. This gives you the benefit of SSDs, while still having lots of storage on platter drives. -- Tryn Mirell Developer Advocate t...@basho.com On Thursday, March

Re: Is it possible to express JOIN and GROUP in Riak?

2012-03-01 Thread Mark Phillips
Hi Sergei, Sean Cribbs gave a presentation last year at Strage Loop wherein he talked about going from SQL -> Riak MapReduce. http://strangeloop-riak-mapred.heroku.com/#1 Specifically, there is some info on doing the equivalent of JOIN and GROUP (and others) starting around slide #24. Hope that

Re: Writing with PW=quorum

2012-03-01 Thread ivenhov
That's perfect and exactly what I needed. Basically I want to make sure that write does not happen in case of network partitioning, which PW was made for I presume. If PR/PW is defined/set on a bucket, do write and read still care about W and R settings? If yes, then I guess for every read, write o

Guaranteeing N physical copies

2012-03-01 Thread Reverend Chip
The docs state re replication that "There are no guarantees that the three replicas will go to three separate physical nodes." What configuration *does* provide such a guarantee? Is there some number of physical nodes > N where having N physical copies is guaranteed?

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: Writing with PW=quorum

2012-03-01 Thread Sean Cribbs
Yes, they control independent issues. PR and PW do not affect how many replies are waited for before returning a successful response to the client. PR and PW can be set higher than R and W/DW. On Thu, Mar 1, 2012 at 2:04 PM, ivenhov wrote: > That's perfect and exactly what I needed. Basically I

Re: basho_metrics re-entrant?

2012-03-01 Thread Joel Meyer
On Wed, Feb 29, 2012 at 2:58 PM, Bob Ippolito wrote: > I don't believe that you'll be able to store these NIF instances in > mochiglobal. You can only store things that can be represented as BEAM code. > Ah, you're right. I tested putting and getting, but I didn't test calling the nif with the r

Riak 1.1.1 RC 1

2012-03-01 Thread Jared Morrow
Riak Users, We have now released Riak 1.1.1 RC 1. This is a release candidate for the upcoming bug fix release 1.1.1. This release is primarily to deal with MapReduce bugs found in 1.1.0. Current release notes for 1.1.1: https://github.com/basho/riak/blob/1.1/RELEASE-NOTES.org You can do

riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Shuhao Wu
Hey guys, I started writing riakkit approximately 3 months ago and announced it here. In case you missed that, Riakkit is basically an object mapper for python and riak, which seemed to be lacking in at the time. Now that 3 months has passed and I have developed this project into much more than wh

Re: riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Sean Carey
Keep up the great work Shuhao! On Mar 1, 2012, at 7:36 PM, Shuhao Wu wrote: Hey guys, I started writing riakkit approximately 3 months ago and announced it here. In case you missed that, Riakkit is basically an object mapper for python and riak, which seemed to be lacking in at the time. Now th

Rekon in riak 1.1.0 ?

2012-03-01 Thread Eric Fong
Hi In https://github.com/basho/rekon It said that rekon is* being incorporated into Riak Control * I installed the riak 1.1.0 with riak control. But doesn't see the rekon. How to enable it ? -- Best Regards, Eric Fong ___

Re: riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Andrey V. Martyanov
Hi! Two things force me to avoid using Riakkit: the code is GPL licensed and non pep8 compliant. So, I cannot fork it and make changes. The code needs clean up, for example, json module is imported in document.py, but not used. Riakkit has no conflict resolution logic, it's basically delegate the

Re: riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Shuhao Wu
Hi! First off, the code is *LGPL* licensed, not GPL. So you're free to put this into any code you want, it's just that when you want to modify riakkit, you have to release your modified version. I just went over your idea and it would be a valid solution to some of the problems I'm having right n

Re: riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Shuhao Wu
Another thing I was considering is forking riak-python-client. Some of the stuff in there could use some fixing as well, and maybe just take out the core transports and such and plug that right into riakkit and skip the notion of RiakObject all together as those API is also somewhat weird. (such as

Re: riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Andrey V. Martyanov
First of all, yes avoiding PEP8 style is a big deal for me. I don't like the inconsistencies it brings to my code. Sorry for GPL, it's a typo. I just don't like GPL-based licenses, including LGPL. I think it's overcomplicated. Regardless "Track dependencies between models". It's the same thing as

licenses (was Re: riakkit, a python riak object mapper, has hit beta!(

2012-03-01 Thread Justin Sheehy
Hi, Andrey. On Mar 1, 2012, at 10:18 PM, "Andrey V. Martyanov" wrote: > Sorry for GPL, it's a typo. I just don't like GPL-based licenses, including > LGPL. I think it's overcomplicated. You are of course free to dislike anything you wish, but it is worth mentioning that GPL and LGPL are very

Re: riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Andrey V. Martyanov
I'm just saying that to efficiently store and get the data user should have ability to customize the relationship. Riak has several options to get related data: secondary indexes, map-reduce etc. I think that the most important task of mapper is to validate the data and to track these dependencies.

Re: riakkit, a python riak object mapper, has hit beta!

2012-03-01 Thread Andrey V. Martyanov
Riakkit in its current implementation has a lot of overhead. But what I get for this price? Almost nothing. Only field validation make sense. Simple key-value mapping is about 50-70 lines of code, not a big deal, even for small project. Riak used mostly in web-based projects. Almost all modern pro