Parameter syntax:
[/-]name [[: =]value]
Arguments start with a slash (/) or a horizontal line (-) followed by the parameter name. Most parameters are followed by a parameter value. Parameters and parameter values are concatenated with a colon (:) or (=), and if there is a space in the parameter value, the parameter value must be enclosed in single or double quotation marks.
The parameters common to kitchen and pan are as follows:
Name of parameter |
Parameter meaning |
Role |
Norep |
|
|
Rep |
Resource Pool Name |
The name of the repository to connect to |
User |
Resource pool Users |
Resource pool users to connect to |
Pass |
Resource Pool user Password |
The repository user password to connect to |
Listrep |
|
List all available repositories |
Dir |
Paths in the resource pool |
Specify the resource pool path |
Listdir |
|
List the paths for all repositories |
File |
Filename |
Specify the file name where the job or transformation resides |
Level |
Error | Nothing| Basic | detailed| Debug | rowlevel| |
Specify Log level |
LogFile |
Log file name |
Specify the log file name to write to |
Version |
|
Displays the version number of the kettle, build date
|
For kitchen, the dir and Listdir parameters list the path to the job, and these two parameters in the pan command list the path to the transformation. Kitchen unique command-line arguments:
Name of parameter |
Parameter meaning |
Role |
Jobs |
Job name |
Specify a job name in the repository |
ListJobs |
|
List all the jobs in the repository
|
Pan-Unique command-line arguments:
Name of parameter |
Parameter meaning |
Homework |
Trans |
Conversion name |
Specify a conversion name in the repository |
Listtrans |
|
List all conversions in the repository
|
Example:/opt/dtb_etl/kitchen.sh-rep=etl_1-user=admin-pass=admin-job=event_main-dir=events
Start the kitchen.sh command in the/opt/dtb_etl/directory, specify the repository Etl_1, repository username admin, password admin, execute event_main This job, specify the location of this job in the repository's events directory.