ETL工具kettle基本使用
阿新 • • 發佈:2019-01-09
1.下載kettle:https://sourceforge.net/projects/pentaho/files/Data%20Integration/7.0/pdi-ce-7.0.0.0-25.zip/download
說明:kettle 是pentaho收購的一個etl工具,pentaho是一家BI解決方案的商業公司。
2.解壓檔案:pdi-ce-7.0.0.0-25.zip,執行:spoon.bat
3.在mysql中建立兩個資料庫:test1和test2,在test1中建立user1表,在test2中建立user2表用來測試
3.測試操作資料庫test1中的user1表和資料庫test2中的user2表
3.1 新建一個轉換(transformation),點選DB連線,選擇對應資料庫型別,建立兩個連線:l1,l2.
若測試連接出現錯誤:
錯誤連線資料庫 [localhost_3306] : org.pentaho.di.core.exception.KettleDatabaseException:Error occurred while trying to connect to the database Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed.
org.gjt.mm.mysql.Driver 將mysql-connector-java-5.1.38-bin.jar拷貝至目錄:pdi-ce-7.0.0.0-25\data-integration\lib下 ,重啟程式,新建DB連線: