Kettle使用,遇到問題及解決辦法,自己過程記錄

---------1. 在妄圖打開軟件前------------------------

這個軟件需要裝jdk
建議jdk直接裝1.8以上版本,不然打不開

裝JDK注意了,用戶變量和系統變量裏的path都要寫

 

---------2. 連數據庫死活連不上(SQL SERVER)------------------------

數據庫這裏我用的是SQL server 2008R2

題外話:   建議用kettle  6.2版本的,據說是支持最多的
               7.4是最後一版支持SQL server 2008R2的

我在測試數據庫連接時死活連不上,報

錯誤連接數據庫 [ConnectSQLSERVER] : org.pentaho.di.core.exception.KettleDatabaseException: 
Error occurred while trying to connect to the database

Driver class 'net.sourceforge.jtds.jdbc.Driver' could not be found, make sure the 'MS SQL Server' driver (jar file) is installed.
net.sourceforge.jtds.jdbc.Driver


org.pentaho.di.core.exception.KettleDatabaseException: 
Error occurred while trying to connect to the database

Driver class 'net.sourceforge.jtds.jdbc.Driver' could not be found, make sure the 'MS SQL Server' driver (jar file) is installed.
net.sourceforge.jtds.jdbc.Driver

去網上搜,都說是要對應的jar包,去下了直接放進去還是不行,按搜到的某個攻略也不行:
 

- Download Microsoft JDBC Drivers 4.2 on https://www.microsoft.com/en-us/download/details.aspx?id=11774
- Unzip the package in a temp directory
- Close Spoon
- Copy '<temp directory>\sqljdbc_4.2\enu\auth\x86\sqljdbc_auth.dll' to 'C:\Program Files (x86)\Java\jre1.8.0_73\bin' (32-bit)
- Copy '<temp directory>\sqljdbc_4.2\enu\sqljdbc42.jar' to '<Kettle installation folder>\data-integration\lib'
- Open Spoon
- Test connection in spoon
- Delete temp directory

最後發現是建立連接選擇時,應該選MS SQL SERVER (Native),之前選的一直是MS SQL SERVER,說是公司不同還是啥的,選擇如圖:

我真是嗶了狗了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章