You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ashish Singhi (JIRA)" <ji...@apache.org> on 2018/04/04 04:51:00 UTC

[jira] [Comment Edited] (HBASE-20231) Not able to delete column family from a row using RemoteHTable

    [ https://issues.apache.org/jira/browse/HBASE-20231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425008#comment-16425008 ] 

Ashish Singhi edited comment on HBASE-20231 at 4/4/18 4:50 AM:
---------------------------------------------------------------

Thanks [~pankaj2461] for the patches and [~yuzhihong@gmail.com], [~uagashe] and [~chia7712] for the reviews.

I have pushed this change to branch-1.4+. [~pankaj2461], if you attach patch for branch-1.2 and branch-1.3, I will commit there as well.


was (Author: ashish singhi):
Thanks [~pankaj2461] for the patches and [~yuzhihong@gmail.com], [~uagashe] and [~chia7712] for the reviews.

I have pushed this change to branch-1.4+. If you attach patch for branch-1.2 and branch-1.3, I will commit there as well.

> Not able to delete column family from a row using RemoteHTable
> --------------------------------------------------------------
>
>                 Key: HBASE-20231
>                 URL: https://issues.apache.org/jira/browse/HBASE-20231
>             Project: HBase
>          Issue Type: Bug
>          Components: REST
>            Reporter: Pankaj Kumar
>            Assignee: Pankaj Kumar
>            Priority: Major
>             Fix For: 1.5.0
>
>         Attachments: HBASE-20231-branch-1-v2.patch, HBASE-20231-branch-1-v3.patch, HBASE-20231-branch-1.patch, HBASE-20231-v2.patch, HBASE-20231-v3.patch, HBASE-20231.patch
>
>
> Example code to reproduce the issue,
> {code:java}
>     Cluster cluster = new Cluster();
>     cluster.add("rest-server-IP", rest-server-port);
>     Client client = new Client(cluster);
>     RemoteHTable table = new RemoteHTable(client, "t1");
>     // Insert few records,
>     Put put = new Put(Bytes.toBytes("r1"));
>     put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c1"), Bytes.toBytes("c1"));
>     put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c2"), Bytes.toBytes("c2"));
>     put.add(Bytes.toBytes("cf2"), Bytes.toBytes("c1"), Bytes.toBytes("c1"));
>     table.put(put);
>     put = new Put(Bytes.toBytes("r2"));
>     put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c1"), Bytes.toBytes("c1"));
>     put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c2"), Bytes.toBytes("c2"));
>     put.add(Bytes.toBytes("cf2"), Bytes.toBytes("c1"), Bytes.toBytes("c1"));
>     table.put(put);
>     // Delete the entire column family from the row
>     Delete del = new Delete(Bytes.toBytes("r2"));
>     del.addFamily(Bytes.toBytes("cf1"));
>     table.delete(del);
> {code}
> Here the problem is in building row specification in RemoteHTable.buildRowSpec(). Row specification is framed as "/t1/r2/cf1:" instead of "/t1/r2/cf1". 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)