{"id":11006,"date":"2024-05-27T19:46:51","date_gmt":"2024-05-28T00:46:51","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=11006"},"modified":"2024-06-05T16:50:15","modified_gmt":"2024-06-05T21:50:15","slug":"testing-zookeeper-using-netcat","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=11006","title":{"rendered":"Testing Zookeeper using NetCat"},"content":{"rendered":"<p>Provided you have stat enabled (something like <code>4lw.commands.whitelist=stat,<\/code> in .\/config\/zookeeper.properties), you can use nc to send stat to each zookeeper and verify it is working. You can also tell which is the leader and how many clients (your current request is one!) are attached to each zookeeper node.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/06\/TestingZookeeperUsingNetCat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11007\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/06\/TestingZookeeperUsingNetCat.png\" alt=\"\" width=\"1042\" height=\"787\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/06\/TestingZookeeperUsingNetCat.png 1042w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/06\/TestingZookeeperUsingNetCat-300x227.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/06\/TestingZookeeperUsingNetCat-1024x773.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/06\/TestingZookeeperUsingNetCat-768x580.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/06\/TestingZookeeperUsingNetCat-750x566.png 750w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Provided you have stat enabled (something like 4lw.commands.whitelist=stat, in .\/config\/zookeeper.properties), you can use nc to send stat to each zookeeper and verify it is working. You can also tell which is the leader and how many clients (your current request is one!) are attached to each zookeeper node. &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1840],"tags":[1841,1796],"class_list":["post-11006","post","type-post","status-publish","format-standard","hentry","category-zookeeper","tag-apache-zookeeper","tag-zookeeper"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11006"}],"version-history":[{"count":2,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11006\/revisions"}],"predecessor-version":[{"id":11009,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11006\/revisions\/11009"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}