Run:

./bin/hbase rest

It outputs options.

For example:

./bin/hbase rest start

... will start it in current console (on port 60050 by default).

To start it as background process writing a pid, etc., do
./bin/hbase-daemon.sh start rest.

That said, REST story is interesting in 0.20.0 in that the 0.19.0 REST was
redone by Brian Beggs.

Then Andrew Purtell did a new fancy REST server as a contrib called stargate
(with help from Brian Beggs).

Documentation on the latter is in javadoc.  There are still a few pieces
missing but they are arriving fast.

St.Ack

On Thu, Jul 23, 2009 at 6:37 PM, Eric Tschetter <eched...@gmail.com> wrote:

> I've been exploring HBase recently and had originally set up a 0.19
> cluster for prototyping, heard that 0.20 has all sorts of performance
> enhancements and setup another 0.20 cluster on a separate dev
> environment.  Everything appears to be working fine, excepting that
> the REST API appears to be non-existent.
>
> I'm not sure if I have to do anything special to make it work, but
> from what I can tell there should be a servlet under
>
> http://hbase-master:port/api/
>
> However, whenever I access that it just loads up a directory listing of
>
> META-INF/
> WEB-INF/
>
> If I try to access anything under /api/, it returns 404s.
>
> The javadoc for org.apache.hadoop.hbase.rest doesn't appear to be
> different from 0.19 (it does list the default port as 60050 instead of
> 60010), so I'm not sure if I am missing some new configuration or if
> there is something else wrong.
>
> None of the updates since the revision I built from seem to touch
> org.apache.hadoop.hbase.rest, though some of them deal with stargate.
> Is the old API gone?
>
> --Eric
>

Reply via email to