uReplicator | Improvement of Apache Kafka Mirrormaker | Pub Sub library
kandi X-RAY | uReplicator Summary
kandi X-RAY | uReplicator Summary
Improvement of Apache Kafka Mirrormaker
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle a post request
- Validates instanceToTopicPartitions map
- Display an autoenancing request
- Validates instanceToTopicPartitions map
- Update a topic
- Handles a PUT request
- Handles a delete topic
- Delete a pipeline
- Returns a JSON representation of the topic
- Sends a request to the UReplicator
- Returns a JSON representation of the deployment
- Handles request to whitelist topic
- Add partition partitions to the fetcher thread
- Handles a POST request
- Tries to poll the Kafka consumer
- Picks next record from the channel
- Returns a JSON representation of the response
- Entry point for the workerStarter
- Filter topic partition
- Returns a JSON representation of this instance
- Generate ZN record for online offline
- Copy data to file
- Create the inbound root root
- Delete a worker
- Entry point for the mirror maker
- Commits offsets to zookeeper
- Handle a child topic change
uReplicator Key Features
uReplicator Examples and Code Snippets
Community Discussions
Trending Discussions on uReplicator
QUESTION
A bit confused about clustering setup:
Zookeeper could be setup as a cluster by configuring myid (1,2,3...) in the file and having for example zookeeper1:2888:3888, zookeeper2:2889:3889 in the zoo.cfg file
For Kafka, in the server.properties file, is it must to specify the full list of zookeeper server for parameter zookeeper.connect, or just 1 is enough? Is there any differences? I've seen practices of specifying the full list of zookeeper server even when creating a topic, e.g. /opt/kafka/bin/kafka-topics.sh --create --zookeeper x.x.x.x:2181,x.x.x.x:2181,x.x.x.x:2181 --replication-factor 1 --partitions 1 --topic sample_test
---Production and DR setup (large latency is expected between production and dr)---
Let's say, having 1 Kafka (kafka1) and 1 zookeeper server (zookeeper1) in production, 1 kafka (kafka2) and 1 zookeeper server (zookeeper2) in DR, and form those 2 zookeepers into a cluster;
running uReplicator to replicate data in production to DR; from uReplicator example, it seems the configuration is like: kafka1 (in production) is connecting to "zookeeper1:2181/cluster1", and kafka2 (in DR) is connecting to "zookeeper1:2181/cluster2", what's the meaning of "/cluster1", "/cluster2"? what's the right config for this scenario, what's the idea of having kafka2 in DR connects to zookeeper1 in prod?
ANSWER
Answered 2018-Aug-21 at 18:52is it must to specify the full list of zookeeper server for parameter zookeeper.connect
It is good practice to put at least 3 or 5. If you only put one, and that goes down, Kafka will likely not work as expected, or fail out.
in DR, and form those 2 zookeepers into a cluster
It's not generally encouraged to share Zookeepers clusters between Kafka clusters, as Kafka puts a reasonable amount of load on Zookeeper for high volume Kafka clusters.
Though, as you point out
connecting to "zookeeper1:2181/cluster1", and kafka2 (in DR) is connecting to "zookeeper1:2181/cluster2", what's the meaning of "/cluster1", "/cluster2"?
This is called a Chroot in Zookeeper. Think of it like a directory, or namespace for each unique Kafka cluster within the Zookeeper cluster.
what's the idea of having kafka2 in DR connects to zookeeper1 in prod?
Well, you wouldn't. If Kafka2 has its own unique topic data that is not being replicated to Kafka1, then pointing at the Zookeeper data that says those topics existed on Kafka2, but not Kafka1 will only result in confusion and error.
Also, I am unaware of how uReplicator works other than MirrorMaker, but you'll also want to prepare a DR strategy for Zookeeper, not only Kafka
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install uReplicator
You can use uReplicator like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the uReplicator component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page