# Here I downloaded kafka-manager for the zip package, uploaded to the server / root:
# Decompression kafka-manager.zip, not unzip tool yum install a direct
yum install unzip -y
unzip kafka-manager.zip
vim /root/kafka-manager-1.3.3.7/conf/application.conf
play.crypto.secret="^<csmm5Fx4d=r2HEX8pelM3iBkFVv?k[mc;IZE<_Qoq8EkX_/7@Zt6dP05Pzea3U"
play.crypto.secret=${?APPLICATION_SECRET}
play.i18n.langs=["en"]
play.http.requestHandler = "play.http.DefaultHttpRequestHandler"
play.http.context = "/"
play.application.loader=loader.KafkaManagerLoader
kafka-manager.zkhosts="server01:2181,server02:2181,server03:2181"
kafka-manager.zkhosts=${?ZK_HOSTS}
pinned-dispatcher.type="PinnedDispatcher"
pinned-dispatcher.executor="thread-pool-executor"
application.features=["KMClusterManagerFeature","KMTopicManagerFeature","KMPreferredReplicaElectionFeature","KMReassignPartitionsFeature"]
akka {
loggers = ["akka.event.slf4j.Slf4jLogger"]
loglevel = "INFO"
}
basicAuthentication.enabled=false
basicAuthentication.username="admin"
basicAuthentication.password="password"
basicAuthentication.realm="Kafka-Manager"
basicAuthentication.excluded=["/api/health"] # ping the health of your instance without authentification
kafka-manager.consumer.properties.file=${?CONSUMER_PROPERTIES_FILE}
# Start kafka-manager
nohup ./../bin/kafka-manager -Dhttp.port=9001 -Dconfig.file=./application.conf >/dev/null 2>&1 &
# After a successful start to see when there ProdServerStart jps process, if there is confirmation has been launched successfully;
# Direct access to localhost in the browser: page 9001 into the management application can be configured;
# If you can not create a cluster after the visit, will change the browser mode or speed mode compatible;
# Kafka-manager fails to start after a leave?
# Solution: Delete files RUNNING_PID installation directory, you can restart;