Hi Vikas, One basic way would be to get the stdout after job submission and parse it to find jobid. And run kill command whenever you need it.
-JJ Sent from my iPhone On Jun 27, 2012, at 7:43 AM, "hadoop" <hadooph...@gmail.com> wrote: > Hi Folks, > > > > I m using java client to run queries on hive, suggest me some way so that I > can kill the query whenever I need. > > Or how can I find the jobid to kill it. > > > > Regards > > Vikas Srivastava >