[
https://issues.apache.org/jira/browse/HBASE-9357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Dimiduk resolved HBASE-9357.
---------------------------------
Resolution: Invalid
Thanks for the gist, Gustavo. Actually, it looks like this is fixed on trunk:
{noformat}
$ ./bin/hbase rest
2013-09-17 09:05:23,087 INFO [main] util.VersionInfo: HBase 0.97.0-SNAPSHOT
2013-09-17 09:05:23,089 INFO [main] util.VersionInfo: Subversion
git://soleil.local/Users/ndimiduk/repos/hbase -r
28a3eed1fd1cf184e25e96e86dc319cade2c992d
2013-09-17 09:05:23,089 INFO [main] util.VersionInfo: Compiled by ndimiduk on
Mon Sep 16 16:10:46 PDT 2013
2013-09-17 09:05:23,629 INFO [main] impl.MetricsConfig: loaded properties from
hadoop-metrics2-hbase.properties
2013-09-17 09:05:23,710 INFO [main] impl.MetricsSourceAdapter: MBean for
source MetricsSystem,sub=Stats registered.
2013-09-17 09:05:23,722 INFO [main] impl.MetricsSystemImpl: Scheduled snapshot
period at 10 second(s).
2013-09-17 09:05:23,722 INFO [main] impl.MetricsSystemImpl: HBase metrics
system started
2013-09-17 09:05:23,722 INFO [main] impl.MetricsSourceAdapter: MBean for
source ugi registered.
2013-09-17 09:05:23,722 WARN [main] impl.MetricsSystemImpl: Source name ugi
already exists!
2013-09-17 09:05:23,732 INFO [main] impl.MetricsSourceAdapter: MBean for
source jvm registered.
2013-09-17 09:05:23,734 INFO [main] impl.MetricsSourceAdapter: MBean for
source REST registered.
usage: bin/hbase rest start [--infoport <arg>] [-p <arg>] [-ro]
--infoport <arg> Port for web UI
-p,--port <arg> Port to bind to [default: 8080]
-ro,--readonly Respond only to GET HTTP method requests [default:
false]
To run the REST server as a daemon, execute bin/hbase-daemon.sh start|stop
rest [--infoport <port>] [-p <port>] [-ro]
{noformat}
Closing as invalid.
> Rest server shouldn't need to initiate ZK connection to print usage
> information
> -------------------------------------------------------------------------------
>
> Key: HBASE-9357
> URL: https://issues.apache.org/jira/browse/HBASE-9357
> Project: HBase
> Issue Type: Bug
> Components: REST
> Affects Versions: 0.95.2
> Reporter: Nick Dimiduk
> Priority: Minor
>
> When there's no ZK available, running `bin/hbase rest` must timeout before
> printing usage information. Initiating a connection should happen after
> parsing CLI options, not before.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira