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.
Kill hive queries without exiting from hive shell
24.1k Views Asked by Padmanabhan Vijendran At
3
You have two options:
press
Ctrl+Cand wait till command terminates, it will not exit from hive CLI, pressCtrl+Csecond time and the session will terminate immediately exiting to the shellfrom another shell run
yarn application -kill <Application ID>ormapred job -kill <JOB_ID>