Is there any way we can kill hive query without exiting from hive shell ?. For Example, I wrongly ran the select
statement from some table which has million rows of data, i just wanted to stop it, but not exiting from the shell. If I pressed CTRL+Z
, its coming out of shell.
Asked
Active
Viewed 2.3k times
7

leftjoin
- 36,950
- 8
- 57
- 116

Padmanabhan Vijendran
- 306
- 1
- 6
- 18
3 Answers
7
You have two options:
press
Ctrl+C
and wait till command terminates, it will not exit from hive CLI, pressCtrl+C
second time and the session will terminate immediately exiting to the shellfrom another shell run
yarn application -kill <Application ID>
ormapred job -kill <JOB_ID>

leftjoin
- 36,950
- 8
- 57
- 116
-
2`hadoop job -kill
` is deprecated, use `mapred job -kill – vim Jan 21 '18 at 12:22`
1
First, look for Job ID by:
hadoop job -list
And then kill it by ID:
hadoop job -kill <JOB_ID>

Hrabosch
- 1,541
- 8
- 12