hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell" <apurt...@apache.org>
Subject Review Request: [rest] content transcoding
Date Sat, 30 Oct 2010 08:29:22 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for hbase.


Introduce a table schema attribute for column families that instructs the REST gateway to
perform input and/or output transcoding, with base64->binary (for GET) and vice versa (for
PUT or POST) as the first supported option.

This addresses bug HBASE-3120.


  src/main/java/org/apache/hadoop/hbase/rest/ExistsResource.java d83dc20 
  src/main/java/org/apache/hadoop/hbase/rest/RegionsResource.java 54f2dc7 
  src/main/java/org/apache/hadoop/hbase/rest/RowResource.java 1bf17b8 
  src/main/java/org/apache/hadoop/hbase/rest/ScannerResource.java 5bb90ef 
  src/main/java/org/apache/hadoop/hbase/rest/SchemaResource.java 7262229 
  src/main/java/org/apache/hadoop/hbase/rest/TableResource.java 5f305db 
  src/main/java/org/apache/hadoop/hbase/rest/transform/Base64.java PRE-CREATION 
  src/main/java/org/apache/hadoop/hbase/rest/transform/NullTransform.java PRE-CREATION 
  src/main/java/org/apache/hadoop/hbase/rest/transform/Transform.java PRE-CREATION 

Diff: http://review.cloudera.org/r/1136/diff


Created a test table. Modified the HCD of a column family by adding a custom attribute of
'Transform$1' => '*:Base64'. Used curl to store the string "Testing 1, 2, 3" using content
type application/octet-stream. Confirmed with shell the value was base64 encoded in table.
Used curl to retrieve the value using accept header of application/octet-stream and confirmed
the response body was the decoded string.



View raw message