hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clint Morgan" <clint....@gmail.com>
Subject Re: HTable.deleteAll(byte[] row) - doesn't work
Date Mon, 23 Jun 2008 16:22:59 GMT
Perhaps the problem is that you are referring to row keys as string in
the put, and as byte[] in the delete. The string argument put method
uses  UTF_8 encoding, String.getBytes() uses the default encoding
which may not be the same...

-clint

On Sun, Jun 22, 2008 at 12:47 PM, acure <cure@xg.pl> wrote:
> Hi
>
>  Hbase 0.2.0 dev - fresh from trunk
>  Example :
>       I have a table x with column : 'col'.
>
>  i put somevalue into column 'col' for row 'aaa':
>
>       HTable table = new HTable("x");
>       BatchUpdate batch = new BatchUpdate("aaa");
>       batch.put("col:", "somevalue".getBytes());
>       table.commit(batch);
>  i deleteAll - full denial remove 'aaa'
>
>       table.deleteAll("aaa".getBytes());
>
>  but  on shell i see that this row still exists.
>
>  when i use deleteAll(row, column) - it's ok and value is removed.
>
>   Thanks - Antony
>
>

Mime
View raw message