Most efficient way to determine if 1000 specific keys exist?

2012-05-02 Thread Tim Haines
Hey guys, Still a relative newbie here. I was hoping to be able to setup a MapReduce job that I could feed 1000 keys to, and have it tell me of the 1000, which keys exist in the bucket. I was hoping this could use the key index (such a thing exists right?) without having to read the objects. Th

Re: Most efficient way to determine if 1000 specific keys exist?

2012-05-02 Thread Jeremiah Peschka
You can use the $keys index to grab this information out of Riak. You could also write an MR job that returns just the key for every key that exists, but you would still have to read everything from disk... Or I think so, could be wrong. --- Jeremiah Peschka, Managing Director, Brent Ozar PLF,

Riak Join is Screwed Up

2012-05-02 Thread Rebecca Meritz
I'm testing a script that joins my riak ring on all machines. There is no data in the database yet but I have repeated joined the ring an separated it while working on the script that sets up the environment on my machines. The ring is now in a bizarre state: [rebecca]$ riak-admin member_status At

Reip(ing) riak node created two copies in the cluster

2012-05-02 Thread Nitish Sharma
Hi, We have a 12-node Riak cluster. Until now we were naming every new node as riak@. We then decided to rename the all the nodes to riak@, which makes troubleshooting easier. After issuing reip command to two nodes, we noticed in the "status" that those 2 nodes were now appearing in the cluste

Re: Reip(ing) riak node created two copies in the cluster

2012-05-02 Thread Mark Phillips
First question: what version of Riak are you running? Mark On May 2, 2012, at 11:05, Nitish Sharma wrote: > Hi, > We have a 12-node Riak cluster. Until now we were naming every new node as > riak@. We then decided to rename the all the nodes to > riak@, which makes troubleshooting easier. >

Re: Reip(ing) riak node created two copies in the cluster

2012-05-02 Thread Jon Meredith
Hi Nitish, If you rebuild the cluster with the same ring size, the data will eventually get back to the right place. While the rebuild is taking place you may have notfounds for gets until the data has been handed off to the newly assigned owner (as it will be secondary handoff, not primary owner

Re: Reip(ing) riak node created two copies in the cluster

2012-05-02 Thread Nitish Sharma
Hi Jon, Thanks for your input. I've already started working on that lines. I stopped all the nodes, moved ring directory from one node, brought that one up, and issued join command to one other node (after moving the ring directory) - node2. While they were busy re-distributing the partitions, I

Re: Reip(ing) riak node created two copies in the cluster

2012-05-02 Thread Jon Meredith
Hi Nitish, for this to work you'll have to stop all the nodes at the same time, clear the ring on all nodes, start up all nodes, then rejoin If you clear the rings one node at a time, when you rejoin the nodes the ring with the old and new style names will be gossipped back to it and you'll still

Re: Reip(ing) riak node created two copies in the cluster

2012-05-02 Thread Nitish Sharma
On May 2, 2012, at 6:12 PM, Jon Meredith wrote: > Hi Nitish, for this to work you'll have to stop all the nodes at the same > time, clear the ring on all nodes, start up all nodes, then rejoin > > If you clear the rings one node at a time, when you rejoin the nodes the ring > with the old and