Closed dungnt081191 closed 5 years ago
@xhl1988 Can you clarify the process and properties for me ?
Did you specify topicmapping.properties
on step 3 ?
hi @yangy0000 , yes, i specify it , add/remove/update topic source & destination . UPDATE : I think i found the issue : The process will be : 1 - start controller 2 - start worker 3 - If modified topicmapping.properties - MUST restart worker 4 - send HTTP REQUEST manually 5 - check the result : work as expected : all message from source cluster will be replicated to destination clustes with exactly name specify in topicmapping.properties
Thank you !
Hi buddies, Overview : When enableAutoWhitelist false, Destination Cluster create 2 topic : 1st topic : same topic name of Source Cluster 2nd topic : topic name in topicmapping.properties .
Branch : Master/branch1.0 have the same issue
Below is my detail config : cluster.properties
consumer.properties
producer.properties
dstzk.properties
helix.properties
topicmapping.properties
zookeeper.properties
Command start Controller :
Command start Worker :
Process I Did : step1 - get the name of topic in Source Cluster . want to replicate all message of it to the Destination Cluster with new topic name , define it in topicmapping.properties topic from Source Cluster : topic_A topic want to replicate to in Destination Cluster : new_topic_A
step2 : Start Controller Step3 : Start Worker Step4 : Manually add topic to uReplicator curl -X POST -d '{"topic":"topic_A", "numPartitions":"1"}' http://localhost:9000/topics
Log on Controller :
Log on Worker :
Result : On destination Cluster : Have new topic name in the same Cluster topic_A with all message from Source Cluster for example : Source Cluster have 100message -> Destination Cluster topic_A created with 100 message -> auto.offset.reset=smallest worked !!
Step4 : use provider send new message to topic_A in Source Cluster Result : message include both of topic in Source Cluster + Destination Cluster Source cluster : 101 message Destination cluster : 101 message Dont have topic : new_topic_A in Destination Cluster as expected.
Step5 : shutdown Controller & Worker And Start it again, send 3 new message to topic in Source cluster Log of worker :
Result : New topic : new_topic_A created in Destination cluster Message :
Question is : How can I replicate all message in topic_A( Source cluster ) to new_topic_A(Destination cluster) ( topic : topic_A & new_topic_A automatically create in Destination cluster )