Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to manage zookeeper and view command summary of zk status in cdh

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Note: if the data directory is not initialized, the ZooKeeper server cannot be started.

/ / in a production environment, you should deploy ZooKeeper as a collection with an odd number of servers. The ZooKeeper service is available as long as most of the servers in the collection are available. The recommended minimum set size is three ZooKeeper servers, and Cloudera recommends that each server run on a separate computer. In addition, if possible, the ZooKeeper server process should have its own dedicated disk storage.

/ / View the status of zk

[root@hadoop-205-107opt] # echo "stat" | nc 192.168.205.107 2181Zookeeper version: 3.4.5-cdh6.9.2--1, built on 04Accord 04After 08:43 2017 GMTClients: / / 192.168.205.107 echo 35132 [1] (queued=0,recved=424,sent=424) / 192.168.205.107 echo 45317 [0] (queued=0,recved=1,sent=0) / 192.168.205.107 queued=0,recved=879 35125 [1] Sent=879) / 192.168.205.107 queued=0,recved=449,sent=449) / 192.168.205.107 queued=0,recved=449,sent=449 / 192.168.205.107 queued=0,recved=449,sent=449 / 192.168.205.107 queued=0,recved=449,sent=449 35075 [1] (queued=0,recved=508,sent=510) / 192.168.205.10735100 [1] (queued=0,recved=432,sent=432) / 192.168.205.107 queued=0,recved=449,sent=449 [1] (queued=0,recved=2404) Sent=2441) Latency min/avg/max: 0/0/231Received: 15265Sent: 15579Connections: 8Outstanding: 0Zxid: 0x7faMode: standaloneNode count: 44 [root@hadoop-205-107opt] # echo "stat" | nc 192.168.205.107 2181 | grep ModeMode: standalone [root @ hadoop-205-107opt] # / opt/cloudera/parcels/CDH-5.9.2-1.cdh6.9.2.p0.3/lib/zookeeper/bin/zkServer.sh statusJMX enabled by defaultUsing config: / opt/cloudera/parcels/CDH- 5.9.2-1.cdh6.9.2.p0.3/lib/zookeeper/bin/../conf/zoo.cfgMode: standalone [hadoop-205 @ hadoop-205-107 opt] # telnet 192.168.205.107 2181Trying 192.168.205.107...Connected to 192.168.205.107.Escape character is'^] .stat / / manually enter Zookeeper version: 3.4.5-cdh6.9.2--1 08:43 in 2017 GMTClients: / 192.168.205.107 GMTClients: / 192.168.205.107 built on 35132 [1] (queued=0,recved=445,sent=445) / 192.168.205.107 built on 35227 [1] (queued=0,recved=7233,sent=7233) / 192.168.205.107 built on 35227 [1] (queued=0,recved=7233,sent=7233) / 192.168.205.107 built on 35133 [1] (queued=0,recved=470,sent=470) / 192.168.205.107 built on 45868 [0] Sent=0) / 192.168.205.107 sent=0 [1] (queued=0,recved=529,sent=531) / 192.168.205.107 queued=0,recved=453,sent=453 / 192.168.205.107 queued=0,recved=2447,sent=2484 [1] Latency min/avg/max: 0/0/231Received: 16267Sent: 16595Connections: 8Outstanding: 0Zxid: 0x855Mode: standaloneNode count: 44Connection closed by foreign host.

Reference link: https://www.cloudera.com/documentation/enterprise/5-13-x/topics/cm_mc_zookeeper_service.html#xd_583c10bfdbd326ba--6eed2fb8-14349d04bee--7f1a

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report