apache nifi:hive关闭连接,工作流停止工作

时间:2016-10-20 05:59:44

标签: apache-nifi

我注意到一些工作流程停止工作,因为连接池失去了与hive的连接,如果我停止然后重新启动连接池,任何工作。如何避免此问题仅适用于蜂巢?有人遇到过这个问题吗?

1 个答案:

答案 0 :(得分:1)

This is a bug, DBCP currently assumes the connections are valid, so it can return such a connection the next time the processor runs, causing the error you are seeing.

I think HiveConnectionPool would benefit from the same fix in NIFI-2381, and perhaps other DBCP settings to ensure only valid connections are returned/borrowed. I have written NIFI-2927 to cover this.

Unfortunately I believe the only workaround at present is to restart NiFi.