kafka-manager安装及异常退出后无法启动解决办法

#这边我下载好的kafka-manager为zip包,上传至服务器/root下:

#解压kafka-manager.zip,没有unzip工具的直接yum安装一个

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}

#启动kafka-manager 

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

#启动成功后jps查看时候有ProdServerStart进程,如果有确认已经启动成功;

#在浏览器直接出入localhost:9001进入管理页面进行配置应用即可;

#如果访问之后不能创建cluster,将浏览器模式更改为兼容或极速模式;

#kafka-manager在异常退出后无法启动?

#解决办法:删除安装目录下RUNNING_PID文件,重启即可;

发布了21 篇原创文章 · 获赞 5 · 访问量 409

猜你喜欢

转载自blog.csdn.net/weixin_41762839/article/details/104904182
今日推荐