How to check which schema registry instances are connected to a Zookeeper quorum

Multi tool use
Multi tool use


How to check which schema registry instances are connected to a Zookeeper quorum



I am running two instances of schema registry that point to the same zookeeper quorum



Here are the properties of the first instance:


port=8081

# The address the socket server listens on.
# FORMAT:
# listeners = listener_name://host_name:port
# EXAMPLE:
# listeners = PLAINTEXT://your.host.name:9092
listeners=http://0.0.0.0:8081

# Zookeeper connection string for the Zookeeper cluster used by your Kafka cluster
# (see zookeeper docs for details).
# This is a comma separated host:port pairs, each corresponding to a zk
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
kafkastore.connection.url=host-1:2181,host-2:2181,host-3:2181

# Alternatively, Schema Registry can now operate without Zookeeper, handling all coordination via
# Kafka brokers. Use this setting to specify the bootstrap servers for your Kafka cluster and it
# will be used both for selecting the master schema registry instance and for storing the data for
# registered schemas.
# (Note that you cannot mix the two modes; use this mode only on new deployments or by shutting down
# all instances, switching to the new configuration, and then starting the schema registry
# instances again.)
#kafkastore.bootstrap.servers=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



and here are the properties of the second instance:


port=18081

# The address the socket server listens on.
# FORMAT:
# listeners = listener_name://host_name:port
# EXAMPLE:
# listeners = PLAINTEXT://your.host.name:9092
listeners=http://0.0.0.0:18081

# Zookeeper connection string for the Zookeeper cluster used by your Kafka cluster
# (see zookeeper docs for details).
# This is a comma separated host:port pairs, each corresponding to a zk
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
kafkastore.connection.url=host-1:2181,host-2:2181,host-3:2181

# Alternatively, Schema Registry can now operate without Zookeeper, handling all coordination via
# Kafka brokers. Use this setting to specify the bootstrap servers for your Kafka cluster and it
# will be used both for selecting the master schema registry instance and for storing the data for
# registered schemas.
# (Note that you cannot mix the two modes; use this mode only on new deployments or by shutting down
# all instances, switching to the new configuration, and then starting the schema registry
# instances again.)
#kafkastore.bootstrap.servers=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



How can I check that both instances can communicate with each other through zookeeper and how can I check whether both instances communicate with the zookeeper quorum? Also, how can I see which schema registry instance is the slave and which is the master one?





There is no slave/master. Each maintain a copy of an internal HashTable backed by the schemas topic and should be able to serve the traffic equally in Round Robin. If you want to check Zookeeper entires, open up zkcli
– cricket_007
Jul 1 at 14:52





@cricket_007 And how can I connect which schema registry instances are connected through zookeeper shell?
– Giorgos Myrianthous
Jul 1 at 16:28





I'm not entirely sure what data is stored in ZK for the registry, but what exactly are you trying to find? You can check if they are shared by posting a schema at port, then looking at the other. There's also many Zookeeper UI explorers on Github if you're not a terminal person
– cricket_007
Jul 1 at 18:30






@cricket_007 thanks!
– Giorgos Myrianthous
Jul 2 at 13:23









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

vN2,nMl,06YF 2K,mawuVxpftd4 kY08og2ggTdFQFiB4w VvOo5Tpwhe8u,FjTbyfR
wsJgj C7,IsP,Tu99kOot 0synii,8,xdlRYTty J,M2KZOade

Popular posts from this blog

Rothschild family

Cinema of Italy