etl - Unzip a list of files whose path has to be read from a table in Pentaho kettle -
i new pentaho kettle , have requirement want unzip set of files , paths files there in table. wondering how go it.
this should main job:
first transformation connects database , extract paths, after job called (unzip) extracts files. i'll more clear, next transformation called "table input":
use "table input" step connect database. when open have create new connecion , put query in canvas. (make query extract values interested column, not every columns). step "copy rows result" gives values form database next job.
the following job "unzip":
this job receives values previous transformation , pass tose "unzip file" job entry.
things know:
1) in main job double click on unzip job icon, go "advanced" , specify "copy previous result parameters" , "execute every input row". of course in job specification have specify path of job.
2) double click on unzip job icon, go parameters , put parameter named value extract database:
3) enter in sub-job (unzip in case) , right click, go "job settings" , "parameters". put same parameter name before:
4) remember set destination folder of files , receving parameters in "unzip files" job entry:
Comments
Post a Comment