kafka manager kafka-manager deployment and installation

http://www.cnblogs.com/yinchengzhe/p/5126360.html

 

参考site:https://github.com/yahoo/kafka-manager

  1. Function

  1. Manage multiple kafka clusters
  2. Conveniently check kafka cluster status (topics, brokers, backup distribution, partition distribution)
  3. Choose the copy you want to run
  4. Based on current partition status
  5. You can select the topic configuration and create a topic (the configurations of 0.8.1.1 and 0.8.2 are different)
  6. Delete topic (only supports versions above 0.8.2 and set delete.topic.enable=true in the broker configuration)
  7. Topic list will indicate which topics are deleted (applicable in version 0.8.2 and above)
  8. Add a partition to an existing topic
  9. Update configuration for an existing topic
  10. Batch repartition on multiple topics
  11. Batch repartition on multiple topics (optional partition broker location)

  2. Environmental requirements

  3. Installation and deployment

  1. Install sbt

    >  curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo

    >  mv bintray-sbt-rpm.repo /etc/yum.repos.d/

    >  yum install sbt

  2. Download and compile

    >  git clone https://github.com/yahoo/kafka-manager.git

    >  cd kafka-manager

    >  sbt clean dist

    Note: Executing sbt compilation and packaging may take a long time, if you hang in the following situations

      

     Modify the logLevel parameter in project/plugins.sbt to logLevel := Level.Debug (default is Warn)

  3. Installation configuration

    After the compilation is successful, a zip package will be generated under target/universal

    Personally compiled:  http://pan.baidu.com/s/1o6RZze i

    Unzip and modify the configuration file

    > unzip kafka-manager-1.3.0.4.zip

    > vim kafka-manager-1.3.0.4/conf/application.conf 

    Set the value of kafka-manager.zkhosts in application.conf to your zk address

    如: kafka-manager.zkhosts="h2:2181"

       kafka-manager.zkhosts=${?ZK_HOSTS}

       pinned-dispatcher.type="PinnedDispatcher"

       pinned-dispatcher.executor="thread-pool-executor"

  4. Start, specify the location of the configuration file and the startup port number, the default is 9000

    > nohup bin/kafka-manager -Dconfig.file=conf/application.conf -Dhttp.port 9001 &

  The first time you enter the web UI, you need to configure the kafka cluster and configure it according to your own information.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326611915&siteId=291194637