I have tungsten replicator set up on a master and a slave, but I cannot get the javascript filter to register.
My master only has the logging prefilter (and this works)
I am trying to register the javascript filter, my config file has:
| Code: |
replicator.prefilter=javascript
replicator.postfilter=logger
replicator.filter.javascript=com.continuent.tungsten.replicator.filter.JavaScrip
tFilter
replicator.filter.javascript.script=/opt/continuent/replicator/samples/
extensions/javascript/filter.js
replicator.filter.javascript.sample_custom_property="Sample value *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*"
|
The startup logs on the slave indicate that the plugin is loading:
| Code: |
2010-03-31 16:08:49,300 INFO replicator.conf.ReplicatorRuntime Loading plugin: key=replicator.filter.javascript class name=com.continuent.tungsten.replicator.filter.JavaScriptFilter
2010-03-31 16:08:49,304 INFO replicator.conf.ReplicatorRuntime Plug-in configured successfully: key=replicator.filter.javascript class name=com.continuent.tungsten.replicator.filter.JavaScriptFilter
|
However, I see no logs coming from the prepare() function of the javascript code.
I do see logs from the logger filter, but the javascript filter appears to not run.
I have confirmed that the path to the js file is correct, but even if I point it to a non-existant file, the logs show exactly the same thing.
Any clues for me?