C/C++教程

关于confluent集成环境的启动问题,为什么无法一键全部启动,而是报错Error: ZooKeeper failed to start

本文主要是介绍关于confluent集成环境的启动问题,为什么无法一键全部启动,而是报错Error: ZooKeeper failed to start,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

先说一下环境

  • confluent7.0.0

  • win10系统安装的wsl2的Ubuntu20.04子系统

  • 在子系统中运行,jdk版本1.8

  • 干净的confluent7.0.0按照https://blog.csdn.net/eyeofeagle/article/details/117999231的博客内容进行配置修改,他上面写的是192.168.56.7我全部写的loclhost

下面是我运行的情况

jinkai@PC-jinkai:~$ su
Password:
root@PC-jinkai:/home/jinkai# export CONFLUENT_HOME=/mnt/d/confluent7
root@PC-jinkai:/home/jinkai# export PATH=$PATH:$CONFLUENT_HOME/bin;
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
Starting ZooKeeper
Error: ZooKeeper failed to start
root@PC-jinkai:/home/jinkai# confluent local services status
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
Connect is [DOWN]
Control Center is [DOWN]
Kafka is [DOWN]
Kafka REST is [DOWN]
ksqlDB Server is [DOWN]
Schema Registry is [DOWN]
ZooKeeper is [UP]
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
ZooKeeper is [UP]
Starting Kafka
Error: Kafka failed to start
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
ZooKeeper is [UP]
Kafka is [UP]
Starting Schema Registry
Error: Schema Registry failed to start
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
ZooKeeper is [UP]
Kafka is [UP]
Schema Registry is [UP]
Starting Kafka REST
Error: Kafka REST failed to start
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
ZooKeeper is [UP]
Kafka is [UP]
Schema Registry is [UP]
Kafka REST is [UP]
Starting Connect
Error: Connect failed to start
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
ZooKeeper is [UP]
Kafka is [UP]
Schema Registry is [UP]
Kafka REST is [UP]
Connect is [UP]
Starting ksqlDB Server
Error: ksqlDB Server failed to start
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
ZooKeeper is [UP]
Kafka is [UP]
Schema Registry is [UP]
Kafka REST is [UP]
Connect is [UP]
ksqlDB Server is [UP]
Starting Control Center
Error: Control Center failed to start
root@PC-jinkai:/home/jinkai# confluent local services start
The local commands are intended for a single-node development environment only,
NOT for production usage. https://docs.confluent.io/current/cli/index.html
​
Using CONFLUENT_CURRENT: /tmp/confluent.271396
ZooKeeper is [UP]
Kafka is [UP]
Schema Registry is [UP]
Kafka REST is [UP]
Connect is [UP]
ksqlDB Server is [UP]
Control Center is [UP]
root@PC-jinkai:/home/jinkai#

按照正常的情况执行confluent local services start应该会像下面这样

Starting Zookeeper
Zookeeper is [UP]
Starting Kafka
Kafka is [UP]
Starting Schema Registry
Schema Registry is [UP]
Starting Kafka REST
Kafka REST is [UP]
Starting Connect
Connect is [UP]
Starting KSQL Server
KSQL Server is [UP]
Starting Control Center
Control Center is [UP]

但是我的为什么会这样,显示失败但是是启动起来的,虽然这样最后也能启动成功进入http://localhost:9021/页面,但肯定是有问题的。

我查看了Linux系统里面的日志文件信息,和正常启动的没有区别,也没有看到相关的报错信息。

 

这篇关于关于confluent集成环境的启动问题,为什么无法一键全部启动,而是报错Error: ZooKeeper failed to start的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!