How to change default properties in engine, server, RunGraph

How-to(s), solutions to common problems, pearls of wisdom

avackova
Posts: 841
Joined: Fri Jul 20, 2007 9:28 am

How to change default properties in engine, server, RunGraph

Postby avackova » Fri Oct 15, 2010 12:27 pm

Haw can I change default properties like default charset, buffer size, date format, when running graph from command line (Eclipse), with RunGraph component or on the server?
Agata Vackova
Javlin a.s.
agata.vackova@javlin.eu

avackova
Posts: 841
Joined: Fri Jul 20, 2007 9:28 am

Re: How to change default properties in engine, server, RunGraph

Postby avackova » Fri Oct 15, 2010 12:43 pm

defaultProperites file contains constants, that are used in all graphs. To change some default properties, you need to create file with the properties you need to override only (see Changing Default CloverETL Settings). Then you need to instruct Clover to use these properties instead of ones, that are provided with CloverETL Engine. When running the graph from command line (or from Eclipse), you need to use -config file_with_overriden_properties switch. If you run graph in RunGraph component with the same jvm, the default properties are derived from parent graph, so you need to run the graph with RunGraph component with -config switch. When running the child graph in separate jvm, you need to provide the parameters in cloverCmdLineArgs in pipe-line mode or in the input field in in-out-mode (1st field: graph to run, 2nd field: parameters). In both cases it should look like -plugins path_to_engine_plugins -config path_to_properties_file.
On server side, you can set your CloverETL engine properties like this:
* create properties file with engine properties you would like to change
* set server config property engine.config.file (its value should be absolute path to your engine properties file)
* restart the CloverETL Server
Agata Vackova

Javlin a.s.

agata.vackova@javlin.eu