Commenti(0)
Lanciare Job e trasformazioni Kettle da Shell
Creare delle trasformazioni dell'ottimo Kettle il tool della famiglia penthao, può non bastare, è spesso utile lanciare queste trasformazioni come job in background
I job Kettle sono pensati per essere eseguiti da shell e quindi facilmente schedulati per fare ciò è sufficiente lanciare nella directory di KETTLE lo script kitchen.bat per Windows e kitchen.sh per Linux, a seguire un esempio di utilizzo
A seguire una lista delle opzioni disponibili
Options:
1-rep = Repository name 2 -user = Repository username 3 -pass = Repository password 4 -job = The name of the job to launch 5 -dir = The directory (dont forget the leading /) 6 -file = The filename (Job XML) to launch 7 -level = The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing) 8 -logfile = The logging file to write to 9 -listdir = List the directories in the repository 10 -listjobs = List the jobs in the specified directory 11 -listrep = List the available repositories 12 -norep = Do not log into the repository 13 -version = show the version, revision and build date 14 -param = Set a named parameter <NAME>=<VALUE>. For example -param:FOO=bar 15 -listparam = List information concerning the defined parameters in the specified job. 16 -export = Exports all linked resources of the specified job. The argument is the name of a ZIP file
Allo stesso modo è possibile eseguire una trasformazione Kettle da shell e quindi facilmente schedulati per fare ciò è sufficiente lanciare nella directory di KETTLE lo script pan.bat per Windows e pan.sh per Linux, le cui opzioni sono molto simili a quelle di kitchen, a seguire un elenco
1-rep = Repository name 2 -user = Repository username 3 -pass = Repository password 4 -trans = The name of the transformation to launch 5 -dir = The directory (dont forget the leading /) 6 -file = The filename (Transformation in XML) to launch 7 -level = The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing) 8 -logfile = The logging file to write to 9 -listdir = List the directories in the repository 10 -listtrans = List the transformations in the specified directory 11 -listrep = List the available repositories 12 -exprep = Export all repository objects to one XML file 13 -norep = Do not log into the repository 14 -safemode = Run in safe mode: with extra checking enabled 15 -version = show the version, revision and build date 16 -param = Set a named parameter <NAME>=<VALUE>. For example -param:FOO=bar 17 -listparam = List information concerning the defined named parameters in the specified transformation.
Condividi su:
Esprimi un voto:
Argomenti chiave:

MySQL Report un tool di shell per tenere tutto sotto controllo