Re: Rowkey design and presplit table

2013-03-07 Thread Lukáš Drbal
Hello guys, sorry for my longest response, iam working on cluster update from 0.94.1 to 0.94.5. Ted: yes, i'll post my solution after import data into production cluster Asaf: "Why do you need to use prefix split policy?" Maybe i don't need it. I want distribute "unknown" keys to all nodes, avoi

Re: Rowkey design and presplit table

2013-03-07 Thread James Taylor
ROUP BY category_id HAVING count(comment_id) > 100 Regards, James On 03/06/2013 11:42 PM, Asaf Mesika wrote: I would convert each id to long and then use Bytes.toBytes to convert this long to a byte array. If it is an int then even better. Now, write all 3 longs one after another to one

Re: Rowkey design and presplit table

2013-03-06 Thread Asaf Mesika
int. Why do you need to use prefix split policy? On Monday, March 4, 2013, Lukáš Drbal wrote: > Hi, > > i have one question about rowkey design and presplit table. > > My usecase: > I need store a lot of comments where each comment are for one article and > this article has o

Re: Rowkey design and presplit table

2013-03-04 Thread Ted Yu
; > > > > Lukas Drbal > > > > > > > > > 2013/3/4 Jilal Oussama > > > > > > > You can split in your application using a regular expression on the > > > > underscore char if the langage supports them (like sp

Re: Rowkey design and presplit table

2013-03-04 Thread Lukáš Drbal
4 Jilal Oussama > > > > > You can split in your application using a regular expression on the > > > underscore char if the langage supports them (like spliting data of a > csv > > > file) > > > > > > > > > 2013/3/4 Lukáš Drbal >

Re: Rowkey design and presplit table

2013-03-04 Thread Ted Yu
t; > Lukas Drbal > > > 2013/3/4 Jilal Oussama > > > You can split in your application using a regular expression on the > > underscore char if the langage supports them (like spliting data of a csv > > file) > > > > > > 2013/3/4 Lukáš Drbal >

Re: Rowkey design and presplit table

2013-03-04 Thread Lukáš Drbal
using a regular expression on the > underscore char if the langage supports them (like spliting data of a csv > file) > > > 2013/3/4 Lukáš Drbal > > > Hi, > > > > i have one question about rowkey design and presplit table. > > > > My usecase: > >

Re: Rowkey design and presplit table

2013-03-04 Thread Jilal Oussama
You can split in your application using a regular expression on the underscore char if the langage supports them (like spliting data of a csv file) 2013/3/4 Lukáš Drbal > Hi, > > i have one question about rowkey design and presplit table. > > My usecase: > I need store a lot

Rowkey design and presplit table

2013-03-04 Thread Lukáš Drbal
Hi, i have one question about rowkey design and presplit table. My usecase: I need store a lot of comments where each comment are for one article and this article has one category. What i need: 1) read one comment by id (where i know commentId, articleId and categoryId) 2) read all coments for