Kettle是一款使用Java編寫的開源ETL工具,運行Kettle需要JVM環境,因此安裝Kettle之前需要首先配置好JDK環境變量。JDK及Kettle下載地址:百度網盤提取碼e5vj Kettle7.0官網 甲骨文
解壓pdi-ce-7.0.0.0-25.zip之後,雙擊spoon.bat運行Kettle。
新建一個轉換,選擇DB連接,本文使用MySQL數據庫實例。填寫必要選項之後點擊測試,彈出正確連接則連接成功,如下圖所示,如果彈出錯誤連接數據庫提示,是因爲Kettle找不到數據庫驅動,將mysql connector jar包放到lib文件夾下重啓Kettle即可解決。驅動下載地址 csdn。
錯誤連接數據庫 [DBTest] : 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
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