我一直在努力设置我的融合本地环境,每次都有一些服务卡住,但模式注册表是一个造成问题的地方。
Below is the error which I am getting.
*[2023-03-28 21:52:29,410] ERROR Error starting the schema registry (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication)
io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryException: Failed to get Kafka cluster ID*
and here is my schema.regitry.properties file
'''*# The address the socket server listens on.
# FORMAT:
# listeners = listener_name://host_name:port
# EXAMPLE:
# listeners = PLAINTEXT://your.host.name:9092
listeners=http://localhost:8081
# Use this setting to specify the bootstrap servers for your Kafka cluster and it
# will be used both for selecting the leader schema registry instance and for storing the data for
# registered schemas.
kafkastore.bootstrap.servers=PLAINTEXT://localhost:9092
# The name of the topic to store schemas in
kafkastore.topic=_schemas
# If true, API requests that fail will include extra debugging information, including stack traces
debug=false*'''
I have already tried changing from kafkastore.bootstrap.servers=PLAINTEXT://localhost:9092 to kafkastore.bootstrap.servers=http://localhost:9092
,kafkastore.bootstrap.servers=http://127.0.0.1:9092,kafkastore.bootstrap.servers=PLAINTEXT://myip:9092 ,kafkastore.bootstrap.servers=http://my-ip:9092