问题启动架构注册表

时间:2018-11-07 01:27:59

标签: apache-kafka confluent confluent-schema-registry

我正在尝试使架构注册表运行,并且看到以下异常。

ERROR Server died unexpectedly: 
    (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain:51)
    org.apache.kafka.common.config.ConfigException: Only plaintext and SSL Kafka endpoints are supported and none are configured.
    at io.confluent.kafka.schemaregistry.storage.KafkaStore.filterBrokerEndpoints(KafkaStore.java:271)
    at io.confluent.kafka.schemaregistry.storage.KafkaStore.<init>(KafkaStore.java:122)
    at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.<init>(KafkaSchemaRegistry.java:141)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:53)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:37)
    at io.confluent.rest.Application.createServer(Application.java:118)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:43)

我正在使用Confluent 3.0.1版本,而我的kafka版本是0.10.0-2.11 以下是我的财产。

listeners=http://0.0.0.0:8081  
kafkastore.connection.url=sl73caehdp0131.visa.com:2181,sl73caehdp0125.visa.com:2181
kafkastore.topic=_schemas
debug=true
avro.compatibility.level=full
kafkastore.security.protocol=SASL_PLAINTEXT
sasl.kerberos.service.name=kafka

为解决上述问题,我将以下属性添加到属性文件中。

kafkastore.bootstrap.servers=PLAINTEXT://sl73caehdp0135.visa.com:9092

添加此属性后,出现异常

ERROR Error starting the schema registry 

  (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication:57) 

  io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryInitializationException: Error initializing kafka store while initializing schema registry at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:189)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:55)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:37)
    at io.confluent.rest.Application.createServer(Application.java:118)
    at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:43)
    Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreInitializationException: No live Kafka brokers
    at io.confluent.kafka.schemaregistry.storage.KafkaStore.createSchemaTopic(KafkaStore.java:225)
    at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:136)
    at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:187)
    ... 4 more

我犯的错误可能是什么,任何人都可以帮忙。

1 个答案:

答案 0 :(得分:0)

请参阅3.0.1 Configuration Options

  

kafkastore.security.protocol

     

与基础持久存储Kafka连接时使用的安全协议。值可以是PLAINTEXT或SSL。

加上,按照the Security Overview page

  

目前,尚不支持ZooKeeper安全性和Kafka SASL身份验证。

在至少升级到0.10.2 Kafka的版本之前,您将无法使用其他组件的较新版本。

理想情况下,它们都应该匹配,但是Schema Registry实际上只是使用常规的使用者流程,因此对于那些较新的版本assuming that the server will support it

,拥有较新的客户端应该不是问题。
  

Confluent Platform 3.2和更高版本中包含的架构注册表与Confluent Platform 3.0和更高版本中包含的任何Apache Kafka代理兼容

相关问题