Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 06-30-2016 12:10 PM
HiveServer2 hangs silently, need to check how many live connections are on HS2, how can this be done ?
Created 06-30-2016 12:14 PM
on the host where hs2 is running do
lsof -i:10000|grep 'ESTABLISHED'|wc -l
Created 06-30-2016 12:14 PM
on the host where hs2 is running do
lsof -i:10000|grep 'ESTABLISHED'|wc -l
Created 06-30-2016 12:23 PM
Thanks @Rajkumar Singh thats works ... probably a wrong question from my end ... but was looking for live "sessions" on HS2 and if possible users
Created 06-30-2016 12:32 PM
I think there is no direct way to do this but you can try to grep some log text.
or
take a heap dump of hiveserver2 and use object query language ( SELECT toString(s.username) FROM INSTANCEOF org.apache.hive.service.cli.session.HiveSessionImpl s ) to know live sessions at that moment. to run object query language you can use jvisualvm or Eclipse MAT.
Created 01-09-2018 11:44 PM
By connecting to web ui over port 10002 one could check the number of live sessions on that instance of hiveserver