hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sishen.freecity (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-795) More Table operation in TableHandler for REST interface
Date Tue, 05 Aug 2008 00:18:44 GMT

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

sishen.freecity commented on HBASE-795:

The main changes of this patch:

1. add create/delete/update/disable/enable method of TableHandler
2. create a new RowHandler to handle row-oriented operation.

The table usecase:

1. create a table  :  curl -T test_table.xml http://localhost:60050/api/tables
    sample data: 
<?xml version="1.0" encoding="UTF-8"?>

2. update table : curl -X PUT -T - http://localhost:60050/api/tables/users
    sample data :  
    <?xml version="1.0" encoding="UTF-8"?><table><columnfamilies><columnfamily><name>subscription</name><max-versions>6</max-versions></columnfamily></columnfamilies></table>

3. disable table : curl -X POST http://localhost:60050/api/tables/users/disable

4. enable table : curl -X POST http://localhost:60050/api/tables/users/enable

5. delete table : curl -X DELETE http://localhost:60050/api/tables/users

> More Table operation in TableHandler for REST interface
> -------------------------------------------------------
>                 Key: HBASE-795
>                 URL: https://issues.apache.org/jira/browse/HBASE-795
>             Project: Hadoop HBase
>          Issue Type: New Feature
>          Components: rest
>            Reporter: sishen.freecity
>         Attachments: 795.trunk.rest_table.patch
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> In the current implementation, only the metadata query of table allowed. It's not convinent
to use the REST interface to write a third-party client library. I think the functionality
of REST interface should be similar with the hbase shell. So user can create/show/update/delate/enable/disable
the table.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message