[
https://issues.apache.org/jira/browse/HBASE-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nitay Joffe updated HBASE-1329:
-------------------------------
Attachment: zookeeper-r785019-hbase-1329.jar
hbase-1329-v2.patch
New patch:
- Add zk_dump which produces a dump of everything HBase from ZooKeeper's point
of view. This is the higher level API. I'd like to leave 'zk' as a pure tunnel
to ZooKeeper's CLI so that we don't clash. We can add parameters to zk_dump (or
make other methods) as people like. Is there anything specifically that people
would like to see?
- Add zk and zk_dump help to 'tools' help menu.
Stack:
- Yes, this requires a new ZK jar. I've included it in this upload.
- I changed this so that HBA returns HConnection and HConnection returns ZKW.
The second one already existed, I only had to add the first.
Some more example usage:
{code}
hbase(main):001:0> zk_dump
09/06/16 17:53:34 INFO zookeeper.ZooKeeperWrapper: Quorum servers:
aa0-000-14.u.powerset.com:2188,aa0-000-13.u.powerset.com:2188,aa0-000-12.u.powerset.com:2188,aa0-001-13.u.powerset.com:2188,aa0-000-15.u.powerset.com:2188
HBase tree in ZooKeeper is rooted at /hbase
Cluster up? true
In safe mode? false
Master address: 208.76.44.158:60007
Region server holding ROOT: 208.76.44.141:60027
Region servers:
- 208.76.44.140:60027
- 208.76.44.158:60027
- 208.76.44.141:60027
- 208.76.44.142:60027
{code}
I'm going to put the UI stuff in separate patches, let's get this stuff
settled/committed first.
> Visibility into ZooKeeper
> -------------------------
>
> Key: HBASE-1329
> URL: https://issues.apache.org/jira/browse/HBASE-1329
> Project: Hadoop HBase
> Issue Type: New Feature
> Affects Versions: 0.20.0
> Reporter: Nitay Joffe
> Assignee: Nitay Joffe
> Priority: Blocker
> Fix For: 0.20.0
>
> Attachments: hbase-1329-v2.patch, hbase-1329.patch, zk.patch,
> zookeeper-r785019-hbase-1329.jar
>
>
> Currently, to the users of HBase ZooKeeper is some mysterious thing that is
> for some reason important but no one knows why. We need to provide more
> visibility into ZooKeeper from HBase.
> This issue is to start a discussion on what sorts of things we can/should
> provide. Some possible ideas to get started:
> - Running a REST server. See ZOOKEEPER-36.
> - FUSE support. See ZOOKEEPER-25.
> - Admin/surgery tools in HBase shell. Answer questions like "in safe mode?"
> - Status and information on HBase's data in ZooKeeper in the web UI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.