kettle執行job過程中會與repository連接斷開


問題:

 An error occured loading the directory tree from the repository ERROR executing query 
The last packet successfully received from the server was 3,645,796 milliseconds ago.
The last packet sent successfully to the server was 801,805 milliseconds ago.

is longer than the server configured value of 'wait_timeout'. You should consider
either expiring and/or testing connection validity before use in your application,
increasing the server configured values for client timeouts, or using the
Connector/J connection property 'autoReconnect=true' to avoid this problem

 

 
看問題可以發現是連接超時的問題,但並不知道在何處配置參數可以修改這個問題。
網上查看中文資料並沒有相關解決方案,最后在官網的文檔上找到解決辦法。
MySQL Another issue you may encounter is that the default timeout in the MySQL
JDBC driver is set to 0 (no timeout). In certain instances, this may not
allow Kettle to detect a server crash or sudden network failure if it
occurs in the middle of a query or open database connection. This in turn
leads to the infinite stalling of a transformation or job. To solve problem,
set the "connectTimeout" and "socketTimeout" parameters for MySQL in the
Options tab. The value to be specified is in milliseconds: for a 2 minute
timeout you would specify value 120000 ( 2 x 60 x 1000 ). You can also
review other options on the linked MySQL help page by clicking on the 'Show
help text on option usage
' button found on the Options tab.

 

 
然后修改
autoReconnect=true
connectTimeout=120000
socketTimeout=120000
 
 
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM