How to get list of active sessions in Hive? Or how to check whether a session is active or not by sessionId in Hive?
Hello everyone. So the problem is next. I have Apache Hive 2.3.6. on my cluster. I start multiple sessions simultaneously and independently from each other. And then temporary .pipeout files with directories are created and if certain session end up with an error this empty files keep accumulating because they are not deleted if the session end up not right. The similar issue was here, but it was not solved - https://issues.apache.org/jira/browse/HIVE-6091.
So the question is how can I find the list of active sessions on my cluster or how can I check whether a session is active or not by sessionId in Hive? I need this information because I want to delete those .pipeout files and in order to do that I need to know which file are still in use (belongs to active session) and which are not! Thanks!

