Support Questions

Find answers, ask questions, and share your expertise

Unable to Kill Session in Hive

avatar
Contributor

have tried to run a select script in Hive, since it took time to fetch result tried modifying the query for limiting the result set. I have tried stopping the query/kill session, but the session remains unresponsive, can you let me know how to kill the session ?

1074-hive-session-1.png

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Suresh Raju

On Amabari Dashboard , click Yarn --> Quick Link --> RM UI

Notice the running jobs and find the application id related to your job

login into one of the nodes as hive or hdfs users

yarn application -kill <application id>

View solution in original post

11 REPLIES 11

avatar
Master Mentor

@Suresh Raju

On Amabari Dashboard , click Yarn --> Quick Link --> RM UI

Notice the running jobs and find the application id related to your job

login into one of the nodes as hive or hdfs users

yarn application -kill <application id>

avatar
Contributor

Tried checking for job ID under RM UI, but there is no application ID visible now ? but the Hive history still displaying the query status as 'Running'

1075-hive-session-2.jpg

1076-hive-session-3.jpg

avatar
Master Mentor

@Suresh Raju I was able to reproduce this in my sandbox.

You can click Dashboard or refresh or load Hive view again to get it clear.

1078-screen-shot-2015-12-24-at-81046-am.png

avatar
Contributor

@Neeraj Sabharwal, have tried refreshing the hive, completely switching off and re-starting it multiple times. am still getting the same running status (more than 5 hours now), am I missing something in the configuration or installation ?

avatar
Master Mentor

@Suresh Raju Please paste screen shot or entries from /var/log/ambari-server/ambari-server.log

avatar
Contributor

@Neeraj Sabharwal - attached ambari-server-log.txt. for your reference, let me know if you are expecting any specific keyword or details from the log file? as its very huge i couldn't able to take more screenshots or copy logs.

1089-ambari-log-tail.jpg

avatar
Master Mentor

@Suresh Raju I dont see anything related to Hive view. Are you still seeing the issue? Restart ambari server if you are still seeing the issue and check logs

avatar
Contributor

Thanks @Neeraj Sabharwal , the issue is completely resovled now.!!!

avatar
Master Mentor

@Suresh Raju Cool. As part of best practive , please accept the best answer.