Confluent 本地服务在模式注册表中失败

问题描述 投票:0回答:0

我一直在努力设置我的融合本地环境,每次都有一些服务卡住,但模式注册表是一个造成问题的地方。

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 
confluent-platform confluence confluent-schema-registry
© www.soinside.com 2019 - 2024. All rights reserved.