Package org.apache.hadoop.hbase.rest
Provides an HBase
REST service.
See:
Description
Package org.apache.hadoop.hbase.rest Description
Provides an HBase
REST service.
This directory contains a REST service implementation for an Hbase RPC
service.
DEPRECATED since 0.20.0; use the stargate contrib instead.
By default, an instance of the REST servlet runs in the master UI; just browse
to [WWW] http://MASTER_HOST:MASTER_PORT/api/ (Results are returned as xml by
default so you may have to look at source to see results).
If you intend to use the hbase REST API heavily, to run an instance of the RES
T server outside of the master, do the following:
cd $HBASE_HOME
bin/hbase rest start
The default port is 60050.
- GET / : Retrieve a list of all the tables in HBase.
- POST / : Create a table
- GET /[table_name] : Retrieve metadata about the table
- PUT /[table_name] : Update the table schema
- DELETE /[table_name] : Delete the table
- POST /[table_name]/disable : Disable the table
- POST /[table_name]/enable : Enable the table
- GET /[table_name]/regions : Retrieve a list of the regions for this table
so that you can efficiently split up the work
- GET /[table_name]/row/[row_key]/timestamps : Retrieve a list of all the
timestamps available for this row key (Not supported by native hbase yet)
- GET /[table_name]/row/[row_key] : Retrieve data from a
row. If column not specified, return all columns
- GET /[table_name]/row/[row_key]/[timestamp] : Retrieve
data from a row, constrained by the timestamp value. If column not specified,
return all columns
- POST/PUT /[table_name]/row/[row_key] : Set the value of one or more
columns for a given row key
- POST/PUT /[table_name]/row/[row_key]/[timestamp] : Set the value of one
or more columns for a given row key with an optional timestamp
- DELETE /[table_name]/row/[row_key]/ : Delete the specified columns from
the row. If there are no columns specified, then it will delete ALL columns
- DELETE /[table_name]/row/[row_key]/[timestamp] : Delete the specified
columns from the row constrained by the timestamp. If there are no columns
specified, then it will delete ALL columns. Not supported yet.
- POST/PUT /[table_name]/scanner : Request that a scanner be created with
the specified options. Returns a scanner ID that can be used to iterate over
the results of the scanner
- POST /[table_name]/scanner/[scanner_id] : Return the current item in the
scanner and advance to the next one. Think of it as a queue dequeue operation
- DELETE /[table_name]/scanner/[scanner_id] : Close a scanner
For examples and more details, please visit
HBaseRest Wiki page.
Copyright © 2010 The Apache Software Foundation