Professional Documents
Culture Documents
2014-03-19
Span
Span(trasform)
1.ktr transformation Pan.bat
cmd Pan.bat F:\kettle4.4\distrib,
Pan.bat /file
D:\etltest\DB2DB.ktr
cd
F:\kettle4.4\distrib
Pan.bat /file
D:\etltest\EtltestTrans.ktr
=:
1
Pan.bat
/rep="production
repository"
/trans="DB2DB"
/dir=/
/trans:"DB2DB"
/dir:/
/rep:"production
repository"
Kitchen
Kitchen(job)
kitchen.bat( UNIX kitchen.sh)-/
options
Options:
/rep
: Repository name
/user
: Repository username
/pass
: Repository password
/job
: The name of the job to launch
/dir
: The directory (dont forget the leading /)
/file
: The filename (Job XML) to launch
/level
: The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing)
/logfile
: The logging file to write to
/listdir
: List the directories in the repository
/listjobs : List the jobs in the specified directory
/listrep
: List the available repositories
/norep
: Do not log into the repository
/version
: show the version, revision and build date
/param
: Set a named parameter <NAME>=<VALUE>. For example -param:FOO=bar
/listparam : List information concerning the defined parameters in the specified
job.
/export
: Exports all linked resources of the specified job. The argument is
the name of a ZIP file.
1windows
2
cmd4windows.dat
cd F:\kettle4.4\distrib
kitchen.bat /norep -file=D:/kettledata/DB2DB.kjb >> kitchen_%date:~0,10%.log
exit
cd F:\kettle4.4\distrib kettle
kitchen.bat
kitchen.bat /norep -file=D:/kettledata/DB2DB.kjb >> kitchen_%date:~0,10%.log