Question

I am trying to use filters to select specific tables to replicate. I tried running this with the installer

./tools/tungsten-installer --master-slave -a \
  ...
  --svc-extractor-filters=replicate \
--property=replicator.filter.replicate.do=test,*.foo"

and got this exception in trepctl status after the master had not installed properly:

Plugin class name property is missing or null: key=replicator.filter.replicate

which file is this properties file? How do I find it? Moreover, in specifying the settings for the filter, how do I know what exactly to put?

I discovered that I am supposed to Modify the configuration template file prior to configuration according to Issue 219 but what changes am I supposed to make in tungsten-replicator-2.0.5-diff that will later on be patched to the extraction?

Issue 254 suggests that If you want to apply a filter out of the box, you can use these options with tungsten-installer:

-a --property=replicator.filter.Replicate.ignoreFilter=schema_x.tablex,schema_x,tabley,schema_y,tablez
 --svc-thl-filter=Replicate 

However when I try using this for --property=replicator.filter.replicate.do, but the problem is still the same:

pendingExceptionMessage: Plugin class name property is missing or null: key=replicator.filter.replicate

Your assistance will be greatly appreciated.

Rumbi

Update: Hi I had a look at this file: /root/tungsten/tungsten-replicator/samples/ conf/filters/default/tableignore.tpl .Acoording to this sample, a static-SERVICE_NAME.properties file is supposed to have something like this configured, please confirm if this is the correct syntax:

replicator.filter.tabledo=com.continuent.tungsten.replicator.filter.JavaScr iptFilter 
replicator.filter.tabledo.script=${replicator.home.dir}/samples/ 
scripts/javascript-advanced/tabledo.js 
replicator.filter.tabledo.tables=foo(database).bar(table) 
replicator.stage.thl-to-dbms.filters=tabledo 

However, I did not find tabledo.js (or something similar) in the directory where tableignore.js exists. Could I please have the location of this file. If there is an alternative way of specifiying --property=replicator.filter.replicate.do=test without the use of this .js file, your suggestions are most welcome.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top