第一章 kettle常见报错总结

一、Unknown error in KarafBlueprintWatcher

1.查看报错信息

ERROR: Bundle pentaho-big-data-api-runtimeTest [76] Error starting mvn:pentaho/pentaho-big-data-api-runtimeTest/6.1.0.1-196 (org.osgi.framework.BundleException: Unable to acquire global lock for resolve.)
org.osgi.framework.BundleException: Unable to acquire global lock for resolve.
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4006)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
        at java.lang.Thread.run(Thread.java:748)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/etl/data-integration/launcher/../lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/etl/data-integration/plugins/pentaho-big-data-plugin/lib/slf4j-log4j12-1.7.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
07:22:52,715 ERROR [KarafLifecycleListener] Error in Blueprint Watcher
org.pentaho.osgi.api.IKarafBlueprintWatcher$BlueprintWatcherException: Unknown error in KarafBlueprintWatcher
        at org.pentaho.osgi.impl.KarafBlueprintWatcherImpl.waitForBlueprint(KarafBlueprintWatcherImpl.java:103)
        at org.pentaho.di.osgi.KarafLifecycleListener$2.run(KarafLifecycleListener.java:161)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.pentaho.osgi.api.IKarafBlueprintWatcher$BlueprintWatcherException: Timed out waiting for blueprints to load: pentaho-big-data-api-runtimeTest,pentaho-big-data-kettle-plugins-common-named-cluster-bridge,pentaho-big-data-kettle-plugins-hdfs,pentaho-big-data-kettle-plugins-hbase,pentaho-big-data-kettle-plugins-mapreduce,pentaho-big-data-kettle-plugins-pig,pentaho-big-data-kettle-plugins-oozie,pentaho-big-data-kettle-plugins-sqoop,pentaho-big-data-impl-clusterTests,pentaho-big-data-impl-shim-shimTests
        at org.pentaho.osgi.impl.KarafBlueprintWatcherImpl.waitForBlueprint(KarafBlueprintWatcherImpl.java:88)
        ... 2 more

2.查看kettle版本

#1.查看kettle版本
[root@prd-jenkins001 data-integration]# ./kitchen.sh -version
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
11:57:59,451 INFO  [KarafInstance] 
*******************************************************************************
*** Karaf Instance Number: 5 at /opt/kettle/data-integration/./system/karaf ***
***   /caches/default/data-4                                                ***
*** Karaf Port:8806                                                         ***
*** OSGI Service Port:9055                                                  ***
*******************************************************************************
11:57:59,451 INFO  [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
四月 08, 2021 11:57:59 上午 org.apache.karaf.main.Main$KarafLockCallback lockAquired
信息: Lock acquired. Setting startlevel to 100
2021/04/08 11:58:00 - Kitchen - Kettle version 6.1.0.1-196, build 1, build date : 2016-04-07 12.08.49

3.处理方式

#1. 进入karaf配置目录
[root@prd-jenkins001 karaf]# cd /opt/kettle/data-integration/system/karaf/etc

#2. 修改31行karaf配置
[root@prd-jenkins001 etc]# vim org.apache.karaf.features.cfg
featuresBoot=config,pentaho-client,pentaho-metaverse,pdi-dataservice
#featuresBoot=config,pentaho-client,pentaho-metaverse,pdi-dataservice,pdi-data-refinery

#3.重启kettle发现ok。

二、连接数据库报错

1.查看报错信息

Error connecting to database [test] : org.pentaho.di.core.exception.KettleDatabaseException:

Error occured while trying to connect to the database Exception while loading class org.gjt.mm.mysql.Driver     org.pentaho.di.core.exception.KettleDatabaseException: Error occured while trying to connect to the database

Exception while loading class org.gjt.mm.mysql.Driver

2.处理方式

#1.查看数据库是否能正常连接
如果不能连接数据库,修改数据库连接保证正常连接再进行测试,如果能正常连接,则缺少驱动包。

#2.下载驱动包、
链接:https://pan.baidu.com/s/1zXEtQCaeKot6Yl60xXuMHg 
提取码:h2qh 

#3.上传驱动包
ns001 software]# cd /opt/kettle/data-integration/lib
[root@prd-jenkins001 lib]# rz

#4.查看驱动包
[root@prd-jenkins001 lib]# ll |grep mysql
-rw-r--r-- 1 root root  1004840 4月   5 18:38 mysql-connector-java-5.1.46-bin.jar
-rw-r--r-- 1 root root  2415211 4月   5 20:02 mysql-connector-java-8.0.23.jar
posted @ 2021-04-08 13:47  年少纵马且长歌  阅读(3240)  评论(0编辑  收藏  举报