Hive
  1. Hive
  2. HIVE-7198

HiveServer2 CancelOperation does not work for long running queries

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: HiveServer2
    • Labels:
      None

      Description

      Sending the CancelOperation() call does not always stop the query and its related MapReduce jobs.

      e.g. from https://issues.cloudera.org/browse/HUE-2144

      I guess you're right. But the strange thing is that the canceled query shows in job browser as 'Running' and the percents go up - 0%, 50%, then the job is failed.
      How does the cancelling actually work? Is it like the hadoop kill command? It seems to me like it works until certain phase of map reduce is done.
      And another thing - after cancelling the job in Hue I can kill it with hadoop job -kill job_<id>. If it was killed already, it would show "no such job".
      

        Issue Links

          Activity

          Navis made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Navis made changes -
          Field Original Value New Value
          Link This issue duplicates HIVE-5901 [ HIVE-5901 ]
          Romain Rigaux created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Romain Rigaux
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development