Open FirasEclipse opened 3 years ago
as error log suggest, it looks like uReplicator is having problem connecting to remote Kafka. can you try to write a kafka producer with the same producer config and produce to remote Kafka? just to verify the there is a connectivity problem.
Hello @yangy0000
I already tested that and now again I copied the producer configuration and tested to produce to the remote kafka using kafka-console-producer.sh
and it worked without problem.
I got only the following warnings (which I got also for the uReplicator).
[2021-03-31 21:06:26,659] WARN The configuration 'delivery.timeout.ms' was supplied but isn't a known config. (org.apache.kafka.clients.producer.ProducerConfig)
[2021-03-31 21:06:26,660] WARN The configuration 'producer.type' was supplied but isn't a known config. (org.apache.kafka.clients.producer.ProducerConfig)
But I don't think it's related to the error!
Questions:
1: No, I thought Kafka Producer Client should handle it? FYI: The worker process will shut down itself if the produce request failed. 2: We don't have API to monitor the count. There are two ways might able to get what you want: 1: check ureplicator consumer committed offset in source cluster(it's in zookeeper). uReplicator only commit offset when the messages successfully produced to the destination cluster 2: check messages in the destination cluster.
Is there a retry configuration so we can change to make the producer try again when it fails?
Since urep is using kafka-clients 1.1.1 , it doesn't have retry. Maybe you could try to override the kafka-clients to 2.2 in uReplicator-worker?
Can you please guide me on how to switch to a newer kafka-clients version in uReplicator-worker? I mean which configuration should I change?
try to add below depedency into https://github.com/uber/uReplicator/blob/master/uReplicator-Worker-3.0/pom.xml
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>2.2.1.4</version>
</dependency>
I upgraded the used kafka-client to 2.7 and still the same error! I opened a Console-producer (using the same client), for more than a day and I faced no disconnection which I'm facing in the uReplicator.
what's your throughput? what is the error message you get before producer failed?
Hello,
I'm trying to use uReplicator between a local kafka and a remote one. I'm running both local kafka and the replicator of the same CentOS machine which has the following OS info.
Local kafka has no authentication (PLAINTEXT), but the remote one has Kerberos authentication (SASL_PLAINTEXT). I configured both the producer and the consumer which are located in
config
.Producer config
Consumer config
uReplicator config and commands
I'm using only a controller with a worker and I tried to run replicator using the following commands:
Start uReplicator Controller
Start uReplicator Worker
Note
I tested also the commands in the user manual without any change.
Configuration of remote Kerberos
The remote kafka which has Kerberos authentication uses the following configuration:
Results and problem:
After about a 40-60 minutes the producer fires an error and stops the replicator worker!
Log of the worker:
You can find log file in the link. Error in uReplicator Worker.txt
Error is:
May it be that the producer fails to renew the TGT from Kerberos? How to make it do it with problems?
Notes: