Review Board 1.7.22


HIVE-4500 HS2 holding too many file handles of hive_job_log_hive_*.txt files

Review Request #10954 - Created May 6, 2013 and updated

Alan Gates
HIVE-4500
Reviewers
hive
cwsteinbach
hive
HS2 holding too many file handles of hive_job_log_hive_*.txt files

 
trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java
Revision 1478219 New Change
[20] 36 lines
[+20]
37
import org.apache.hadoop.hive.conf.HiveConf;
37
import org.apache.hadoop.hive.conf.HiveConf;
38
import org.apache.hadoop.hive.ql.QueryPlan;
38
import org.apache.hadoop.hive.ql.QueryPlan;
39
import org.apache.hadoop.hive.ql.exec.Task;
39
import org.apache.hadoop.hive.ql.exec.Task;
40
import org.apache.hadoop.hive.ql.session.SessionState;
40
import org.apache.hadoop.hive.ql.session.SessionState;
41
import org.apache.hadoop.hive.ql.session.SessionState.LogHelper;
41
import org.apache.hadoop.hive.ql.session.SessionState.LogHelper;

    
   
42
import org.apache.hadoop.io.IOUtils;
42
import org.apache.hadoop.mapred.Counters;
43
import org.apache.hadoop.mapred.Counters;
43
import org.apache.hadoop.mapred.Counters.Counter;
44
import org.apache.hadoop.mapred.Counters.Counter;
44
import org.apache.hadoop.mapred.Counters.Group;
45
import org.apache.hadoop.mapred.Counters.Group;
45

    
   
46

   
46
/**
47
/**
[+20] [20] 483 lines
[+20] [+] public void setIdToTableMap(Map<String, String> map) {
530
      return idToTableMap.get(tuple);
531
      return idToTableMap.get(tuple);
531
    }
532
    }
532
    return null;
533
    return null;
533

    
   
534

   
534
  }
535
  }

    
   
536

   

    
   
537
  public void closeStream() {

    
   
538
    IOUtils.cleanup(LOG, histStream);

    
   
539
  }

    
   
540

   
535
  @Override
541
  @Override
536
  public void finalize() throws Throwable {
542
  public void finalize() throws Throwable {
537
    if (histStream !=null){
543
    closeStream();
538
      histStream.close();

   
539
    }

   
540
    super.finalize();
544
    super.finalize();
541
  }
545
  }
542
}
546
}
trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
Revision 1478219 New Change
 
trunk/service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java
Revision 1478219 New Change
 
trunk/service/src/java/org/apache/hive/service/cli/operation/Operation.java
Revision 1478219 New Change
 
trunk/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
Revision 1478219 New Change
 
  1. trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java: Loading...
  2. trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java: Loading...
  3. trunk/service/src/java/org/apache/hive/service/cli/operation/HiveCommandOperation.java: Loading...
  4. trunk/service/src/java/org/apache/hive/service/cli/operation/Operation.java: Loading...
  5. trunk/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java: Loading...