hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sishen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-960) REST interface: more generic column family configure and also get Rows using offset and limit
Date Sun, 26 Oct 2008 13:06:44 GMT

     [ https://issues.apache.org/jira/browse/HBASE-960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

sishen updated HBASE-960:
-------------------------

    Attachment: 960.trunk.update_column_descriptor.patch

The TableHandler new example configure xml:

<?xml version="1.0" encoding="UTF-8"?>
<table>
  <name>tables</name>
  <columnfamilies>
    <columnfamily>
      <name>column_name</name>
      <max-versions>1</max-versions>
      <compression>BLOCK</compression>
      <in-memory>false</in-memory>
      <block-cache>true</block-cache>
      <metadata>
         <name>hbase.hregion.majorcompaction</name>
         <value>1800</value>
      </metadata>
      <metadata>
          <name>xxx</name>
          <value>xxxx</value>
      </metadata>
    </columnfamily>
  </columnfamilies>
</table>

The RowHandler new example request:

http://localhost:60010/api/table_name/row/row_name?offset=xx&limit=xx

the response will be

<?xml version="1.0" encoding="UTF-8"?>
<row>
 <count></count>
 <column>
  <name>
a:  
  </name>
  <value>
YQ==
  </value>
  <timestamp>xxxxxxxxxxx</timestamp>
 </column>
 <column>
   <name></name>
   <value></value>
   <timestamp>xxxxxxxxx</timestamp>
 </column>
</row>

> REST interface:  more generic column family configure and also get Rows using offset
and limit
> ----------------------------------------------------------------------------------------------
>
>                 Key: HBASE-960
>                 URL: https://issues.apache.org/jira/browse/HBASE-960
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: rest
>    Affects Versions: 0.19.0
>            Reporter: sishen
>             Fix For: 0.19.0
>
>         Attachments: 960.trunk.update_column_descriptor.patch
>
>
> The update column family operation in REST interface will overwrite the default metadata
using the default value which is unexpected.  
> We should use the column family to get the old value and then do update if requested
by the users.  
> Also, for non-default metadata value, such as "hbase.hregion.majorcompaction", we should
still be enable to create/update it using REST interface.
> For RowHandler, the user can request with offset and limit and get the rows.

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


Mime
View raw message