metric.reporters = []
kafkastore.connection.url = 192.168.3.15:2181
avro.compatibility.level = backward
debug = false
shutdown.graceful.ms = 1000
response.mediatype.preferred = [application/vnd.schemaregistry.v1+json, application/vnd.schemaregistry+json, application/json]
kafkastore.commit.interval.ms = -1
response.mediatype.default = application/vnd.schemaregistry.v1+json
kafkastore.topic = _schemas
metrics.jmx.prefix = kafka.schema.registry
access.control.allow.origin =
port = 8081
request.logger.name = io.confluent.rest-utils.requests
metrics.sample.window.ms = 30000
kafkastore.zk.session.timeout.ms = 30000
master.eligibility = true
kafkastore.topic.replication.factor = 3
kafkastore.timeout.ms = 500
host.name = 192.168.204.135
schema.registry.zk.namespace = schema_registry
kafkastore.init.timeout.ms = 60000
metrics.num.samples = 2
(io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig:135)
[2016-04-17 14:06:14,499] INFO Initialized the consumer offset to -1 (io.confluent.kafka.schemaregistry.storage.KafkaStoreReaderThread:86)
[2016-04-17 14:06:24,743] ERROR Server died unexpectedly: (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain:51)
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1120)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:147)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:122)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71)
at kafka.consumer.ZookeeperConsumerConnector.connectZk(ZookeeperConsumerConnector.scala:181)
at kafka.consumer.ZookeeperConsumerConnector.<init>(ZookeeperConsumerConnector.scala:129)
at kafka.javaapi.consumer.ZookeeperConsumerConnector.<init>(ZookeeperConsumerConnector.scala:66)
at kafka.javaapi.consumer.ZookeeperConsumerConnector.<init>(ZookeeperConsumerConnector.scala:69)
at io.confluent.kafka.schemaregistry.storage.KafkaStoreReaderThread.<init>(KafkaStoreReaderThread.java:93)
at io.confluent.kafka.schemaregistry.storage.KafkaStore.<init>(KafkaStore.java:109)
at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.<init>(KafkaSchemaRegistry.java:136)
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:109)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:43)
docker run --net="host" -P -e SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=192.168.3.15:2181 -e SCHEMA_REGISTRY_HOST_NAME=192.168.204.135 confluent/schema-registry:2.0.1
Note: The docker command I used isdocker run --net="host" -P -e SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=192.168.3.15:2181 -e SCHEMA_REGISTRY_HOST_NAME=192.168.204.135 confluent/schema-registry:2.0.1
--
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/47b03235-b736-4479-9033-f98d05c9b447%40googlegroups.com.
Hi Eli,Just to confirm, are you using the repo https://github.com/confluentinc/docker-images and try to make it work with Kafka cluster VMs running on Mesos? A dumb suggestion would be increasing the Zookeeper connecting timeout.Thanks,Liquan
On Sun, Apr 17, 2016 at 7:22 AM, Eli Jordan <elias.k...@gmail.com> wrote:
Note: The docker command I used isdocker run --net="host" -P -e SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=192.168.3.15:2181 -e SCHEMA_REGISTRY_HOST_NAME=192.168.204.135 confluent/schema-registry:2.0.1
--
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-platform+unsub...@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/47b03235-b736-4479-9033-f98d05c9b447%40googlegroups.com.
metric.reporters = []
kafkastore.connection.url = 192.168.3.15:2181
avro.compatibility.level = backward
debug = false
shutdown.graceful.ms = 1000
I tried building my own docker image, but hit the same problem. The docker file and script is below.
The thing that realy confuses me is that when I use the image on docker hub https://hub.docker.com/r/confluent/schema-registry/ it works! But this is an older version of registry
FROM ubuntu:trusty
RUN mkdir -p /opt/confluent
WORKDIR /tmp
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y wget unzip openjdk-7-jre-headless
RUN wget http://packages.confluent.io/archive/2.0/confluent-2.0.1-2.11.7.zip && \
unzip confluent-2.0.1-2.11.7.zip && \
mv confluent-2.0.1/* /opt/confluent
COPY schema-registry.sh /opt/confluent/
EXPOSE 8081
ENTRYPOINT ["/opt/confluent/schema-registry.sh"]
#!/bin/bash
CONFIG_FILE="/opt/confluent/schema-registry.properties"
for var in $(env | grep '^SCHEMA_REGISTRY_' | sort); do
key=$(echo $var | sed -r 's/SCHEMA_REGISTRY_(.*)=.*/\1/g' | tr A-Z a-z | tr _ .)
value=$(echo $var | sed -r 's/.*=(.*)/\1/g')
echo "${key}=${value}" >> ${CONFIG_FILE}
done
cat ${CONFIG_FILE}
/opt/confluent/bin/schema-registry-start ${CONFIG_FILE}
--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/C3FmdsbJtLY/unsubscribe.
To unsubscribe from this group and all its topics, 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/5f54ace1-b84d-440a-bed3-aed687add26e%40googlegroups.com.
--
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/CAHGXxfY-ePNyu_QSOJ%3DQ_O-YiZz7azXfbgaoe9aVfVTFwjmYhw%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@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/5f54ace1-b84d-440a-bed3-aed687add26e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-platform+unsub...@googlegroups.com.
To unsubscribe from this group and all its topics, 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/5f54ace1-b84d-440a-bed3-aed687add26e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/CAHGXxfY-ePNyu_QSOJ%3DQ_O-YiZz7azXfbgaoe9aVfVTFwjmYhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/C3FmdsbJtLY/unsubscribe.
To unsubscribe from this group and all its topics, 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/9e73acd8-90aa-49f0-a19f-fce26f0dfab0%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@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/5f54ace1-b84d-440a-bed3-aed687add26e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-platform+unsub...@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/CAHGXxfY-ePNyu_QSOJ%3DQ_O-YiZz7azXfbgaoe9aVfVTFwjmYhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/C3FmdsbJtLY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@googlegroups.com.