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,说是公司不同还是啥的,选择如图:

我真是哔了狗了

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