修改MySQL數據庫密碼後kettle不能正常同步,報數據庫密碼錯誤

在正常生產中使用kettle時遇到了一個修改數據庫密碼之後,kettle不能同步並一直報數據庫鏈接密碼錯誤;剛好能抽出一點時間將具體問題和解決步驟貼出來,供大家借鑑;

具體報錯內容如下:

*******************************************************************************
*** Karaf Instance Number: 1 at /usr/software/kettle/./system/karaf/caches/ ***
***   default/data-1                                                        ***
*** Karaf Port:8802                                                         ***
*** OSGI Service Port:9051                                                  ***
*******************************************************************************
11:01:04,364 INFO  [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
Sep 19, 2019 11:01:04 AM org.apache.karaf.main.Main$KarafLockCallback lockAquired
INFO: Lock acquired. Setting startlevel to 100
2019/09/19 11:01:05 - Kitchen - Logging is at level : Basic
2019/09/19 11:01:05 - Kitchen - Start of run.
2019/09/19 11:01:05 - RepositoriesMeta - Reading repositories XML file: /root/.kettle/repositories.xml
Thu Sep 19 11:01:05 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
2019/09/19 11:01:06 - cfgbuilder - Warning: The configuration parameter [org] is not supported by the default configuration builder for scheme: sftp
Processing stopped because of an error:
Error connecting to the repository!
Error occurred while trying to connect to the database
Error connecting to database: (using class org.gjt.mm.mysql.Driver)
Access denied for user 'root'@'11.2.333.44' (using password: YES)
ERROR: Kitchen can't continue because the job couldn't be loaded.

一、解決方法

1、如果是將kettle鏈接數據庫的密碼配置到數據庫表中的,要先檢查一下數據庫表中的密碼是否更改;
注:密碼文本是經過kettle工具加密
加解密方式請看我的另一篇博文:kettle-數據庫密碼加密及解密
鏈接:https://blog.csdn.net/qq_42567801/article/details/100935393*

2、檢查服務器中kettle配置文件repositories.xml中的數據庫密碼是否更改;
注:經常忘了修改這個地方的密碼,導致半天找不到問題所在
路徑:/root/.kettle/repositories.xml

3、本地連接kettle庫查看任務中表操作連接數據庫密碼是否正確;

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