kettle執(zhí)行定時(shí)任務(wù)kitchen.bat該如何分析

今天就跟大家聊聊有關(guān)kettle執(zhí)行定時(shí)任務(wù)kitchen.bat該如何分析,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。

創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),瀾滄企業(yè)網(wǎng)站建設(shè),瀾滄品牌網(wǎng)站建設(shè),網(wǎng)站定制,瀾滄網(wǎng)站建設(shè)報(bào)價(jià),網(wǎng)絡(luò)營(yíng)銷(xiāo),網(wǎng)絡(luò)優(yōu)化,瀾滄網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競(jìng)爭(zhēng)力。可充分滿(mǎn)足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時(shí)我們時(shí)刻保持專(zhuān)業(yè)、時(shí)尚、前沿,時(shí)刻以成就客戶(hù)成長(zhǎng)自我,堅(jiān)持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實(shí)用型網(wǎng)站。

環(huán)境
操作系統(tǒng):windows server 2008_x86
etl:kettle6.0

Kettle是一個(gè)開(kāi)源的ETL(Extract-Transform-Load的縮寫(xiě),即數(shù)據(jù)抽取、轉(zhuǎn)換、裝載的過(guò)程)項(xiàng)目,項(xiàng)目名很有意思,水壺。按項(xiàng)目負(fù)責(zé)人Matt的說(shuō)法:把各種數(shù)據(jù)放到一個(gè)壺里,然后呢,以一種你希望的格式流出。Kettle包括三大塊:

Spoon——轉(zhuǎn)換/工作(transform/job)設(shè)計(jì)工具 (GUI方式)
Kitchen——工作(job)執(zhí)行器 (命令行方式)
Span——轉(zhuǎn)換(trasform)執(zhí)行器 (命令行方式)

Kettle是一款國(guó)外開(kāi)源的etl工具,純java編寫(xiě),綠色無(wú)需安裝,數(shù)據(jù)抽取高效穩(wěn)定。Kettle中有兩種腳本文件,transformation和job,transformation完成針對(duì)數(shù)據(jù)的基礎(chǔ)轉(zhuǎn)換,job則完成整個(gè)工作流的控制。

kitchen.bat后面可以是-也可以是/ 然后加上options
Options:
  /rep            : Repository name 資料庫(kù)名稱(chēng)
  /user           : Repository username 資料庫(kù)用戶(hù)名
  /pass           : Repository password 資料庫(kù)密碼
  /job            : The name of the job to launch  job名
  /dir            : The directory (dont forget the leading /) job的目錄
  /file           : The filename (Job XML) to launch  xml job的文件名
  /level          : The logging level (Basic, Detailed, Debug, Rowlevel, Error, Nothing) 日志級(jí)別
  /logfile        : The logging file to write to 日志文件名
  /listdir        : List the directories in the repository 列出在檔案庫(kù)的目錄
  /listjobs       : List the jobs in the specified directory 列出在特定目錄下的job
  /listrep        : List the available repositories 列出可用的檔案庫(kù)
  /norep          : Do not log into the repository 不登陸檔案庫(kù)
  /version        : show the version, revision and build date 查看版本及創(chuàng)建日期
  /param          : Set a named parameter <NAME>=<VALUE>. For example -param:FILE=customers.csv
  /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.
  /custom         : Set a custom plugin specific option as a String value in the job using <NAME>=<Value>, for example: -custom:COLOR=Red
  /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)


編寫(xiě)一個(gè)test_job.bat 內(nèi)容如下:
D:
cd D:\Program Files\kettle\data-integration
kitchen.bat -rep kettlerep -user admin -pass admin -dir  /job_dir  -job job_name  -level=basic>D:\JOB_LOG\job_input.log
-rep kettlerep 指定資料檔案庫(kù)名稱(chēng)
-user admin -pass admin 用戶(hù)名,密碼
-dir  /job_dir 指定目錄
-job job_name 設(shè)置job名稱(chēng)
-level=basic>D:\JOB_LOG\job_input.log設(shè)置日志級(jí)別及輸出路徑。

pan.bat 
Options:
  /rep            : 資源庫(kù)名稱(chēng)
  /user          : 資源庫(kù)用戶(hù)名
  /pass          : 資源庫(kù)密碼
  /trans          : 要啟動(dòng)的轉(zhuǎn)換名稱(chēng)
  /dir            : 目錄(不要忘了前綴 /)
  /file           : 要啟動(dòng)的文件名(轉(zhuǎn)換所在的 XML 文件)
  /level         : 日志等級(jí) (基本, 詳細(xì), 調(diào)試, 行級(jí), 錯(cuò)誤, 沒(méi)有)
  /logfile       : 要寫(xiě)入的日志文件
  /listdir        : 列出資源庫(kù)里的目錄
  /listtrans    : 列出指定目錄下的轉(zhuǎn)換
  /listrep       : 列出可用資源庫(kù)
  /exprep      : 將資源庫(kù)里的所有對(duì)象導(dǎo)出到 XML 文件中
  /norep        : 不要將日志寫(xiě)到資源庫(kù)中
  /safemode       : 安全模式下運(yùn)行: 有額外的檢查
  /version        : 顯示版本,校訂和構(gòu)建日期
  /param         : Set a named parameter <NAME>=<VALUE>. For example -param:FOO=bar
  /listparam     : List information concerning the defined named parameters in the specified transformation.
  /metrics        : Gather metrics during execution
  /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)

看完上述內(nèi)容,你們對(duì)kettle執(zhí)行定時(shí)任務(wù)kitchen.bat該如何分析有進(jìn)一步的了解嗎?如果還想了解更多知識(shí)或者相關(guān)內(nèi)容,請(qǐng)關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝大家的支持。

本文題目:kettle執(zhí)行定時(shí)任務(wù)kitchen.bat該如何分析
本文鏈接:http://muchs.cn/article44/ihihee.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、網(wǎng)站策劃、網(wǎng)站改版、網(wǎng)站收錄、服務(wù)器托管、虛擬主機(jī)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話(huà):028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站制作