hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HBase Review Board (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-3119) [rest] publish endpoint and statistics into ZooKeeper
Date Mon, 18 Oct 2010 21:48:28 GMT

    [ https://issues.apache.org/jira/browse/HBASE-3119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922287#action_12922287
] 

HBase Review Board commented on HBASE-3119:
-------------------------------------------

Message from: "Andrew Purtell" <apurtell@apache.org>

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://review.cloudera.org/r/1039/
-----------------------------------------------------------

Review request for hbase.


Summary
-------

This change allows the REST interface to publish its endpoint and metrics, currently only
requests/sec, into ZooKeeper. By default a permanent znode tree is created as needed at /hbase/rest/status
and Stargate instances create ephemeral children of this with names in the format <host>:<port>.
The ephemeral znodes contain JSON serialized information about the instance, e.g.

  {"connector":{"host":"restserver.example.com","port":"8080"},"statistics":{"requests":"13"}}

The function of Stargate itself is not affected, except for one significant change: now if
the ZooKeeper service is lost, the Stargate instances will abort along with the rest of HBase.


This addresses bug HBASE-3119.
    http://issues.apache.org/jira/browse/HBASE-3119


Diffs
-----

  src/main/java/org/apache/hadoop/hbase/HConstants.java 71c3e7b 
  src/main/java/org/apache/hadoop/hbase/rest/Main.java 368b4b4 
  src/main/java/org/apache/hadoop/hbase/rest/RESTServlet.java ed92857 
  src/main/java/org/apache/hadoop/hbase/rest/metrics/RESTMetrics.java 284bbc5 

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


Testing
-------


Thanks,

Andrew




> [rest] publish endpoint and statistics into ZooKeeper
> -----------------------------------------------------
>
>                 Key: HBASE-3119
>                 URL: https://issues.apache.org/jira/browse/HBASE-3119
>             Project: HBase
>          Issue Type: Improvement
>          Components: rest
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Minor
>         Attachments: HBASE-3119.patch
>
>
> This change allows the REST interface to publish its endpoint and metrics, currently
only requests/sec, into ZooKeeper. By default a permanent znode tree is created as needed
at {{/hbase/rest/status}} and Stargate instances create ephemeral children of this with names
in the format {{<host>:<port>}}. The ephemeral znodes contain JSON serialized
information about the instance, e.g.
>     {{{"connector":{"host":"restserver.example.com","port":"8080"},"statistics":{"requests":"13"}}}}
> The function of Stargate itself is not affected, except for one significant change: now
if the ZooKeeper service is lost, the Stargate instances will abort along with the rest of
HBase. 

-- 
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