码迷,mamicode.com
首页 > Windows程序 > 详细

kettle8.3 win7环境下安装的注意点

时间:2020-01-04 18:26:28      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:java   variable   grant   serve   perm   install   connector   安装mysql   mysql服务器   

kettle的安装很简单,到官网下载解压即可。只是启动时可能碰到一些问题,需要注意一下:

1. 启动时执行Spoon.bat一闪而退

#需要编辑Spoon.bat,在其中找到该行,根据自己机器配置进行内存大小的调整
if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms1024m" "-Xmx2048m" "-XX:MaxPermSize=256m"

2. jar包缺失

创建数据库连接时,以mysql为例,如果连接测试时提示下面信息,说明缺少数据库连接的jar包,需要安装mysql的驱动jar包,下载地址:https://dev.mysql.com/downloads/connector/j/

错误连接数据库 [loan] : 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

下载后安装到\kettle8.3\data-integration\libswt\win64下面(64位机器),重启Spoon。

3. 数据库本身配置问题,通过root用户连接但未开通远程权限

错误连接数据库 [loan] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database

Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Unknown database ‘loan‘

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

Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Unknown database ‘loan‘

-- 允许root使用密码从任何主机连接到MySQL服务器
mysql> GRANT ALL PRIVILEGES ON *.* TO root@% IDENTIFIED BY 123 WITH GRENT OPTION;

-- 允许root使用密码从IP为172.16.16.120的主机远程连接到MySQL服务器的loan库
mysql> GRANT ALL PRIVILEGES ON loan.* TO root@172.16.16.120 IDENTIFIED BY 123 WITH GRENT OPTION;

之后刷新权限使其生效

mysql> FLUSH PRIVILEGES;

4. MySQL时区问题

The server time zone value ‘Öйú±ê׼ʱ¼ä‘ is unrec,time zone

如果错误信息中含有如上的提示,可以判断是MySQL时区的问题,可进行查看及配置。

show variables like %time_zone%;
set global time_zone=+8:00;

 

kettle8.3 win7环境下安装的注意点

标签:java   variable   grant   serve   perm   install   connector   安装mysql   mysql服务器   

原文地址:https://www.cnblogs.com/zjfjava/p/12149658.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!