hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] [Created] (HIVE-17941) Don't Re-Create Running Job Client During Status Checks
Date Mon, 30 Oct 2017 21:05:02 GMT
BELUGA BEHR created HIVE-17941:

             Summary: Don't Re-Create Running Job Client During Status Checks
                 Key: HIVE-17941
             Project: Hive
          Issue Type: Improvement
          Components: HiveServer2
    Affects Versions: 3.0.0, 2.3.1
            Reporter: BELUGA BEHR

while (!rj.isComplete()) {
        RunningJob newRj = jc.getJob(rj.getID());
        if (newRj == null) {
          // under exceptional load, hadoop may not be able to look up status
          // of finished jobs (because it has purged them from memory). From
          // hive's perspective - it's equivalent to the job having failed.
          // So raise a meaningful exception
          throw new IOException("Could not find status of job:" + rj.getID());
        } else {
          rj = newRj;

Every time we loop here for a status update, we are rebuilding the RunningJob object to test
if the Job information is still loaded in YARN.  Rebuilding this RunningJob object is not
trivial because it requires that we re-load and parse the Job Configuration XML file every

{code:java|title=Outdated Stacktrace But Same Idea Holds}
at Method)
        at org.apache.hadoop.conf.Configuration.loadResource(
        at org.apache.hadoop.conf.Configuration.loadResources(
        at org.apache.hadoop.conf.Configuration.getProps(
        at org.apache.hadoop.conf.Configuration.get(
        at org.apache.hadoop.mapred.JobConf.checkAndWarnDeprecation(
        at org.apache.hadoop.mapred.JobConf.<init>(
        at org.apache.hadoop.mapred.JobConf.<init>(
        at org.apache.hadoop.mapred.JobClient$NetworkedJob.<init>(
        at org.apache.hadoop.mapred.JobClient.getJob(
        at org.apache.hadoop.mapred.JobClient.getJob(
        at org.apache.hadoop.hive.ql.exec.HadoopJobExecHelper.progress(
        at org.apache.hadoop.hive.ql.exec.HadoopJobExecHelper.progress(

Maybe we can be use {{isRetired()}} instead for this particular check.  We also probably need
to be better about checking the return value from any of the {{RunningJob}} methods if it's
the case that they can fail/go-away at any time if YARN purges the information.  It seems
that perhaps this was an attempt to detect a purged job before exercising the {{RunningJob}}
object... even though it can go bad at any point.

This message was sent by Atlassian JIRA

View raw message