1. 程式人生 > >KETTLE命令列執行JOB(*.KJB)

KETTLE命令列執行JOB(*.KJB)

--前提
Windows環境+正確的環境變數配置+kettle版本資訊(4.3)
--從資料庫中執行區分大小寫
kitchen /rep etl /user admin /pass admin /job Job_ETL
--從檔案中執行
kitchen /file:D:\\ETL\\file_job.kjb /level:Basic
--定期執行


--詳細引數
C:\Users\gyh>kitchen
DEBUG: Using JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=D:\Program Files\Java\jdk1.6.0_33
DEBUG: _PENTAHO_JAVA=D:\Program Files\Java\jdk1.6.0_33\bin\java.exe
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.
  /maxloglines    : The maximum number of log lines that are kept internally by Kettle. Set to 0 to keep all rows (default)
  /maxlogtimeout  : The maximum age (in minutes) of a log line while being kept internally by Kettle.
	        Set to 0 to keep all rows indefinitely (default)