重新启动操作系统后流转不连接到卡夫卡连接



我使用confluent安装kafka,使用此代码可以运行kafka-connect:sudo /kafka/bin/connect-distributed.sh /kafka/config/connect-distributed.properties然后重新启动系统或停止运行命令此kafka连接服务已停止,但我希望此服务始终处于活动运行状态。

如果你想要一个始终活跃的服务,你可以使用Systemd,假设你的操作系统支持

如果你通过APT/YUM安装了Confluent Platform,你就会有这些可用的

sudo systemctl enable confluent-kafka-connect
sudo systemctl start confluent-kafka-connect

https://docs.confluent.io/platform/current/installation/scripted-install.html

否则,您将不得不自己编写服务文件

你可能想对经纪人做同样的事情

最新更新