Coder Social home page Coder Social logo

jetgeng / zookeeper_dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phunt/zookeeper_dashboard

0.0 2.0 0.0 543 KB

Django based dashboard for an Apache ZooKeeper cluster.

Home Page: http://hadoop.apache.org/zookeeper/

License: Apache License 2.0

zookeeper_dashboard's Introduction

ZooKeeper Dashboard

Author: Patrick Hunt (follow me on twitter)

Summary

This project uses Django and the zkpython bindings to provide a dashboard for a ZooKeeper ensemble (cluster).

  • Cluster summary
  • Individual server detail
  • Client connection detail
  • Navigate & examine the live znode hierarchy

This is a work in progress. Want more? Ping me on twitter or enter an issue on GitHub.

What’s Apache ZooKeeper?

From the official site: “ZooKeeper is a high-performance coordination service for distributed applications.”

It exposes common services – such as naming, configuration management, synchronization, and group services – in a simple interface so you don’t have to write them from scratch. You can use it off-the-shelf to implement consensus, group management, leader election, and presence protocols.

Overview

Django and the zkpython bindings are used to provide a dashboard for a ZooKeeper ensemble (cluster).

License

This project is licensed under the Apache License Version 2.0

Requirements

  • Django 1.0+

Usage

Edit settings.py. The top of the file has the ZOOKEEPER specific settings.

  • ZOOKEEPER_SERVERS – host:port(,host:port)* of all servers in your cluster. This is the same information that you provide in your ZooKeeper client configuration.

then start the django server

PYTHONPATH=lib.linux-i686-2.6 LD_LIBRARY_PATH=lib.linux-i686-2.6 ./manage.py runserver

Obviously the dashboard needs access to the serving cluster (it queries the server’s client port per ZOOKEEPER_SERVERS configuration).

Finally open a link in your browser to the server: http://127.0.0.1:8000/

Note: you may need to compile the zookeeper python binding yourself, this project includes only 32bit linux binaries. Additionally, the django – zookeeper bridge relies on some changes to the zkpython binding that are not yet released, so if you do compile yourself you will need to compile zkpython from the Apache ZooKeeper SVN trunk (this should be addressed as soon as ZooKeeper 3.3.0 is released).

ZooKeeper client output is written to “cli_log.txt”.

Limitations

ACLs are not yet fully supported. In particular the django server runs as an un-authenticated user. If nodes are protected by ACLs the server will not be able to access them.

Screenshots

Cluster Summary

dashboard_summary

Server Summary

dashboard_server_summary

ZNode tree

ACLs and child list not shown

dashboard_tree_znode

zookeeper_dashboard's People

Contributors

phunt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.