You are on page 1of 3

Kettle 6 Span Kitchen

2014-03-19

Kettle 6 Span Kitchen


Kettle Spoon/(transform/job) (GUI
)Span(trasform) ()Kitchen(job)
()
Spoon Span Kitchen
Spoon GUI /
AIX GUI Spoon

Span
Span(trasform)
1.ktr transformation Pan.bat
cmd Pan.bat F:\kettle4.4\distrib,
Pan.bat /file

D:\etltest\DB2DB.ktr

Pan.bat /rep:"production repository"


/trans:"DB2DB" /dir:/ /user:admin /pass:admin /level:Basic
2.bat

cd

F:\kettle4.4\distrib

Pan.bat /file

D:\etltest\EtltestTrans.ktr

panKtr.bat panKtr.bat ktr

=:
1


Pan.bat

/rep="production

repository"

/trans="DB2DB"

/dir=/

/trans:"DB2DB"

/dir:/

/user=admin /pass=admin /level=Basic


Pan.bat

/rep:"production

repository"

/user:admin /pass:admin /level:Basic


Pan.bat /rep "production repository" /trans "DB2DB" /dir / /user
admin /pass admin /level Basic

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.

options =:kitchen.bat /file d:\


-file=D:\ /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

kitchen.bat job job


D:/kettledata/DB2DB.kjb
kitchen_%date:~0,10%.log
2 UNIX
cmd4unix.sh,:
cd /home/ kettle4.4/distrib
./kitchen.sh -file=/home/etl/ DB2DB.kjb >> /home/etl/log/kettle.log

crontab UNIX shell


UNIX kitchen.sh
././kitchen.sh

You might also like