Cannot start schema-registry on Confluent 3.0 with default configuration

400 views
Skip to first unread message

Nicolas Phung

unread,
Jul 7, 2016, 10:21:35 AM7/7/16
to Confluent Platform
Hello,

I'm following the quickstart guide for Confluent Platform 3.0 but I can't start the schema-registry (Zookeeper and Kafka are starting/working). Here's my configurations (default configuration):

$ cat /etc/kafka/zookeeper.properties                                                                                                                                                                                       
dataDir=/var/lib/zookeeper
clientPort=2181
maxClientCnxns=0

$ cat /etc/kafka/server.properties                                                                                                                                             
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
log.dirs=/var/lib/kafka
num.partitions=1
num.recovery.threads.per.data.dir=1
log.retention.hours=168
log.segment.bytes=1073741824
zookeeper.connect=localhost:2181
confluent.support.metrics.enable=true

$ sudo cat /etc/schema-registry/schema-registry.properties
kafkastore.connection.url=localhost:2181
kafkastore.topic=_schemas
debug=false

When I'm trying to launch the schema-registry I have the following errors :

$ sudo schema-registry-start /etc/schema-registry/schema-registry.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/share/java/confluent-common/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/share/java/schema-registry/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Exception in thread "main" java.lang.ExceptionInInitializerError
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:41)
Caused by: io.confluent.common.config.ConfigException: Configuration listeners is defined as an override but does not exist.
at io.confluent.common.config.ConfigDef.defineOverride(ConfigDef.java:121)
at io.confluent.common.config.ConfigDef.defineOverride(ConfigDef.java:160)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig.<clinit>(SchemaRegistryConfig.java:188)
... 1 more

I have tried to change the schema-registry.properties but it's always asking about the "listeners" configuration like this. Does anyone has the same issue ?

Regards,
Nicolas PHUNG

Nicolas Phung

unread,
Jul 11, 2016, 11:57:47 AM7/11/16
to Confluent Platform
Ok  I don't know why but trying several time with this configuration worked. Maybe the schema-registry is waiting for something to happen in Kafka + Zookeeper the first time they start.

Regards,

Alex Loddengaard

unread,
Jul 11, 2016, 3:27:49 PM7/11/16
to confluent...@googlegroups.com
Hi Nicolas, are you compiling from source? If so, you likely saw this error because rest-utils was out of date in your local maven repo. Regardless, glad you got it working.

Alex

On Mon, Jul 11, 2016 at 8:57 AM, Nicolas Phung <nicola...@gmail.com> wrote:
Ok  I don't know why but trying several time with this configuration worked. Maybe the schema-registry is waiting for something to happen in Kafka + Zookeeper the first time they start.

Regards,

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/85c264f8-35f7-467b-9d7c-83603b1ade29%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages