简体   繁体   中英

Connecting DB Connection from properties file outside the Kettle is not working

I am trying to remove DB Connection from ktr file and I am trying to connect to DBConnection by using the properties file which contains information about the connection. I used this link as reference;

Pass DB Connection parameters to a Kettle aka PDI table Input step dynamically from Excel .

I followed all the steps but I am not able to get the required output.

I want to connect to the database using properties file and have to excute the SQL using the DB defined in the properties file and the output has to be transfered into the output(Excel,csv,output-table etc).

Try something like this:

1- A Index job for start all (is my way)

This job call a transformation whose job is to load the connection data to the database

指数

2- The transformation that load the connection data pass this variables like parameters

变数

3- The middle job is only for repeat the process if is necessary, only work like a bridge, pass the parameters

中间

4- In this transformation does all DB work

选择

5- The datasource look like this.

数据源

PS: sorry for my poor english :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM