Created 09-06-2017 02:32 PM
I have a Hive query (coming from Nifi), it is an insert operation, and Tez (view from Ambari) has reported it running for >48 hours. This was preventing other operations from occuring, so I wanted to kill the query so the backlog could be processed.
I killed the associated Yarn Application. The Tez view from Ambari still shows the status as Running. Clicking through to the Application ID shows the status as Killed and Final Status as Undefined. Clicking through to the DAG shows the status as Killed, and the only listed Vertex is also Killed. Total Tasks for the DAG is 1.
However, despite all this the query is still marked as running in TEZ and other queries are blocked behind it. Even non-modifying queries like a simple SELECT COUNT(*) are unable to run. This has persisted across Yarn, Hive, Tez, and even entire machine restarts.
Is there some way to kill off the operations that Tez is showing? Killing the yarn application doesn't seem to be sufficient.
Versions:
YARN: 2.7.3
Tez: 0.7.0
Hive: 1.2.1000
Created 09-06-2017 03:25 PM
Which version ?
Created 09-06-2017 03:38 PM
@Vinod Bonthu
Sorry, updated post to reflect versions
Created 10-19-2017 02:47 AM
I'm experiencing this same issue btw. I'm wondering if we're running out of resources for tez. I have a support case open with Hortonworks and will let you know what comes of it. We usually have to restart Hive in order to for more Tez/Hive jobs to run.
Created 10-19-2017 12:23 PM
In our case, restarting Hive (or the entire stack for that matter) didn't seem to do anything. After playing with some resource allocation, we were able to get some jobs to go through, but the ones that were killed still remain.
I'm starting to wonder if it's an issue with Tez not recognizing that jobs are being killed.
Created 01-09-2018 11:37 PM
Came here to find how to kill queries that show as running in Tez. I am facing the same issue as documented above..Tez shows 4 queries running without ApplicationID and DAGID's.
I have restarted the whole suite, but still shows running.
Versions:
YARN: 2.6.3.0-235
Tez-client - 2.6.3.0-235
Hadoop 2.7.3.2.6.3.0-235
Created on 02-07-2018 06:43 AM - edited 08-18-2019 02:07 AM
I'm having the same problem, I killed some jobs, but tez UI saus some of them are still running; no App ID or DAG ID. Query was launched from Hive
HDP 2.6.0.3-8
YARN 2.7.3
Tez 0.7.0
Created 01-29-2018 04:22 PM
We are facing the same issue. Restarting the cluster doesn't seem to help either. Has anyone been able to figure out a way to clear those stale running queries?
Created 01-29-2018 04:29 PM
In our case it was a resource allocation issue. We had our queues not set up optimally and we also changed some memory configurations around to allow the initial query process to run properly. Basically, the default queue didn't have any resources and we noticed that when a query first is submitted, there's a process that runs in the default queue before submitting the job to the queue specified.
Created 03-15-2018 09:24 AM
We are facing the same issue. is it a Bug?