Coder Social home page Coder Social logo

zktools's Introduction

目标

该项目主要为了实现多个zookeeper迁移、资源隔离、以及监控等功能

功能

  1. zookeeper super user
  2. zookeeper distCopy
  3. zookeeper ACL
  4. zookeeper监控

使用

  1. 首先编译: mvn clean install -DskipTests
  2. distCopy使用: sh distCopy.sh -from host:port -to host:port -srcpath path1 [-despath path2] [watch] [-timeout time]
    比如 sh disCopy.sh -from 10.15.8.24:2181 -to 10.15.8.27:2181 -srcpath /hbase -despath /bda/hbase/hbase1
    将拷贝10.15.8.24这台zk /hbase下的路径到10.15.8.27这台zk /bda/hbase/hbase1下
    如果不设置[despath], 则默认拷贝到srcpath同样路径下
  3. superUser使用:
    3.1) sh superUser.sh super:guangming
    3.2) 产生加密后的密文: super:V56e0FnimNzScgvwtE1Jy1uwlIc=
    3.3) 修改Zookeeper的启动脚本zkServer.sh,在start)附近加入以下配置:
    -Dzookeeper.DigestAuthenticationProvider.superDigest=super:V56e0FnimNzScgvwtE1Jy1uwlIc=
    3.4) 启动zookeeper,通过zkCli.sh进入命令行,输入addauth digest super:guangming
    3.5) addauth命令只在当前会话有效,下次开启super user,需要重新输入addauth digest super:guangming

zktools's People

Contributors

colorant 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.