04-20-2018 05:02 AM
I have the idle_session_timeout set to some value. Once the threshold is crossed, the session is marked as expired in the web UI. But however the sessions do not seem to get closed.
Even after clicking on the close button across each expired session, a notification is shown that the session has been closed successfully. However a netstat on the daemon shows that the connection is still established. Only when the session is disconnected from the client, the connection is closed in impala daemon.
I see threads running back in 2015 mentioning this issue. But I do not see any foormal closure as such. Has this issue been fixed. If so in which version is it available.
04-20-2018 09:07 AM
How are you connecting to Impala? Generally, a connection supports multiple sessions. A session closing wouldn't imply that the connection would be closed given that the connection can have other sessions. Session close will free the state associated with that session and close any operations/requests that were made in that session that are still open.
04-23-2018 03:39 AM
I am connecting to impala through the jdbc/odbc drivers.
Lets say there is a jdbc conenction established from a sql client. If the sql client is not closed, then a connection is always established from the particular application to the deamon without any active session(s).
1. Is there a way to time-out such inactive connections(as in without any active sessions).
2. Would these connection actually consume/hold resources leading to considerable resource crunches when there are more number of inactive connections. If so, is there a way to release them?.
04-25-2018 11:41 AM
Thanks for the suggestion. That is the feature i am looking for. However despite using it, I am not able realise the functionality of SocketTimeOut.
I use the following url : jdbc:impala://<host>:21050//<default>;SocketTimeout=1000;AuthMech=3;UID=<user>;PWD=<password>;
The connection is successful but the connection does not get closed at all post the time out. When i do a netstat, the connection is established ever. Let me know if i am missing out on something here.
Impala version : Impalad version 2.11.0-cdh5.14.0 RELEASE
Driver : Cloudera_ImpalaJDBC4_22.214.171.1247.
I believe(not sure though) that the client is able to pass the SocketTimeOut parameter but the server is unable to timeout the connection once the threshold is reached.
Note : I get the following output in the console :
[Simba][ImpalaJDBCDriver](100001) Error setting default connection property values.
04-28-2018 04:10 PM - edited 04-28-2018 04:15 PM
SocketTimeout sets a socket timeout in the network layer. For any API call which is made the network waits for a response from the server and if the response is not received in the specified limit, socket times out. It is also applicable during connection.
As of now, there is nothing in the driver which can close the connection if it is idle for a certain amount of time.
I'd also mention there are much newer versions of the driver than v2.5.5. Latest is v.2.5.43.