Re: What is the best value to be used in rowkey

2012-09-22 Thread Doug Meil
Hi there, you probably want to read thisŠ http://hbase.apache.org/book.html#schema On 9/22/12 10:29 AM, "Ramasubramanian Narayanan" wrote: >Hi, > >Can anyone suggest what is the best value that can be used for a rowkey in >a hbase table which will not produce duplicate any point of time. F

Re: Online Schema Edit Stability/Maturity

2012-09-22 Thread Stack
On Sat, Sep 22, 2012 at 7:30 AM, Jacques wrote: > I know that HBASE-4213 and HBASE-1730 are both listed as in 94 and 92 > respectively. I also see that HBASE-4741 is marked for 96. I remember > off-handed comments at some point saying that both mechanisms had > challenges. How mature is Online

Re: Required a sample Java program to delete a row from Hbase

2012-09-22 Thread Dhaval Shah
HTable and Delete are the only 2 I remember   Regards, Dhaval - Original Message - From: Ramasubramanian Narayanan To: user@hbase.apache.org; Dhaval Shah Cc: Sent: Saturday, 22 September 2012 10:47 AM Subject: Re: Required a sample Java program to delete a row from Hbase Dhaval, Than

Major compaction queue monitoring

2012-09-22 Thread Ioakim Perros
Hi, I would like to programmatically major compact a table's regions, but I would like to check if major compaction ended (i.e.: compaction queue size goes to zero). I tried to do it through the following code but it failed throwing a null pointer exc. HBaseAdmin admin = new HBaseAdmin(con

Re: Required a sample Java program to delete a row from Hbase

2012-09-22 Thread Ramasubramanian Narayanan
Dhaval, Thanks!! What are all the classes that we need to import? My requirement is to use java script in Pentaho. So I could not write a full Java program there... I may require to import required classes before using these functions. regards, Rams On Sat, Sep 22, 2012 at 7:48 PM, Dhaval Shah

Re: What is the best value to be used in rowkey

2012-09-22 Thread Bertrand Dechoux
I would say it depends on your context. Like you say, your 'primary key' should be distinct for two different records. Even if you are using a hash in addition to the timestamp, you can not garante that a record won't be overwritten. If you have something in your context that could act as an identi

Online Schema Edit Stability/Maturity

2012-09-22 Thread Jacques
I know that HBASE-4213 and HBASE-1730 are both listed as in 94 and 92 respectively. I also see that HBASE-4741 is marked for 96. I remember off-handed comments at some point saying that both mechanisms had challenges. How mature is Online Schema Edit today? Have things stabilized? Thanks, Jacq

Re: Required a sample Java program to delete a row from Hbase

2012-09-22 Thread Dhaval Shah
Delete d = new Delete(rowKey); HTable t = new HTable(tableName); t.delete(d); Regards, Dhaval From: Ramasubramanian Narayanan To: user@hbase.apache.org Sent: Saturday, 22 September 2012 10:15 AM Subject: Required a sample Java program to delete a row from Hbas

Re: DoubleColumnInterpretor for my coprocessor

2012-09-22 Thread J Mohamed Zahoor
Ok. I tried two things. 1) Loading the coproc HTD and loading the jar from hdfs 2) Loading the cop roc as system coproc (by setting in hbase-site.xml) and loading the jar from "lib" dir of HBase. The first approach was not working initially. When it was not working, the region server log s

Re: DoubleColumnInterpretor for my coprocessor

2012-09-22 Thread J Mohamed Zahoor
Hi I went through the "BigDecimalColumnInterpretor" mail thread. It looks like HBaseObjectWritable understands "Double" unlike BigDecimal in the above case. Digging further. If anyone else has a clue.. let me know. ./Zahoor On 22-Sep-2012, at 1:38 PM, J Mohamed Zahoor wrote: > > The reas

Re: DoubleColumnInterpretor for my coprocessor

2012-09-22 Thread J Mohamed Zahoor
The reason was than i am getting a exception like http://pastebin.com/PmFrmPNy when i exec the coprocessor. ./Zahoor On 22-Sep-2012, at 1:26 PM, J Mohamed Zahoor wrote: > Hi > > I am trying out a implementation of DoubleColumnInterpretor on the lines of > LongColumnInterpretor. > Do i hav

DoubleColumnInterpretor for my coprocessor

2012-09-22 Thread J Mohamed Zahoor
Hi I am trying out a implementation of DoubleColumnInterpretor on the lines of LongColumnInterpretor. Do i have to write the "readFields" and "write" methods? ./Zahoor