Hbase and zookeeper Data Structure Query

Source: Internet
Author: User

I. Preface

Over the past year, I have been busy with business analysis and top-level design for specific projects, and have little time and effort to focus on specific technical details. In addition to the improvement of architecture concepts and analysis capabilities, at the specific technical level, there has not been much progress. For some reason, I was always asked about some technical details, and many details were blurred. Take some time to review them. The Technology Section will be the focus of the next phase.

Ii. operation instructions

There are two main channels to view hbase data in zookeeper: 1. view the data through the hbase shell command zk_dump; 2. view the data through zk_cli.sh;

Iii. zk_dump

 1 HBase is rooted at /hbase 2 Active master address: localhost,60000,1411261739960 3 Backup master addresses: 4 Region server holding hbase:meta: localhost,60020,1411261739301 5 Region servers: 6  localhost,60020,1411261739301 7 /hbase/replication:  8 /hbase/replication/peers:  9 /hbase/replication/rs: 10 /hbase/replication/rs/localhost,60020,1411261739301: 11 Quorum Server Statistics:12  192.168.230.128:218113   Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT14   Clients:15    /192.168.230.128:54264[1](queued=0,recved=204,sent=212)16    /192.168.230.128:54269[1](queued=0,recved=113,sent=113)17    /192.168.230.128:54265[1](queued=0,recved=460,sent=507)18    /192.168.230.128:54271[1](queued=0,recved=131,sent=131)19    /192.168.230.128:54274[1](queued=0,recved=86,sent=86)20    /192.168.230.128:54656[1](queued=0,recved=12,sent=12)21    /192.168.230.128:54654[1](queued=0,recved=3,sent=3)22    /192.168.230.128:54270[1](queued=0,recved=94,sent=94)23    /192.168.230.128:54481[1](queued=0,recved=242,sent=242)24    /192.168.230.128:54657[0](queued=0,recved=1,sent=0)25   26   Latency min/avg/max: 0/1/15527   Received: 135228   Sent: 140629   Connections: 1030   Outstanding: 031   Zxid: 0x6532   Mode: standalone33   Node count: 38

4. zk_cli.sh

 1 [zk: 192.168.230.128:2181(CONNECTED) 30] ls 2 ZooKeeper -server host:port cmd args 3         connect host:port 4         get path [watch] 5         ls path [watch] 6         set path data [version] 7         rmr path 8         delquota [-n|-b] path 9         quit 10         printwatches on|off11         create [-s] [-e] path data acl12         stat path [watch]13         close 14         ls2 path [watch]15         history 16         listquota path17         setAcl path acl18         getAcl path19         sync path20         redo cmdno21         addauth scheme auth22         delete path [version]23         setquota -n|-b val path24 [zk: 192.168.230.128:2181(CONNECTED) 31] ls /25 [hbase, zookeeper]26 [zk: 192.168.230.128:2181(CONNECTED) 32] ls /hbase27 [meta-region-server, backup-masters, table, draining, region-in-transition, table-lock, running, master, namespace, hbaseid, online-snapshot, replication, splitWAL, recovering-regions, rs]28 [zk: 192.168.230.128:2181(CONNECTED) 33]

V. Description

I will not elaborate on the output results. If you are interested, ask du Niang.

  Do not worry about the road without friends, night has its own early pedestrians. Big Data architect technical exchange: 347018601

 

  

 

Hbase and zookeeper Data Structure Query

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.