MAPREDUCE-6282. Reuse historyFileAbsolute.getFileSystem in CompletedJob#loadFullHistoryData for code optimization. (zxu via rkanter)
This commit is contained in:
parent
75ead273be
commit
d4f7e2507f
|
@ -274,6 +274,10 @@ Release 2.8.0 - UNRELEASED
|
||||||
MAPREDUCE-5755. MapTask.MapOutputBuffer#compare/swap should have
|
MAPREDUCE-5755. MapTask.MapOutputBuffer#compare/swap should have
|
||||||
@Override annotation. (ozawa)
|
@Override annotation. (ozawa)
|
||||||
|
|
||||||
|
MAPREDUCE-6282. Reuse historyFileAbsolute.getFileSystem in
|
||||||
|
CompletedJob#loadFullHistoryData for code optimization.
|
||||||
|
(zxu via rkanter)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -345,9 +345,7 @@ public class CompletedJob implements org.apache.hadoop.mapreduce.v2.app.job.Job
|
||||||
JobHistoryParser parser = null;
|
JobHistoryParser parser = null;
|
||||||
try {
|
try {
|
||||||
final FileSystem fs = historyFileAbsolute.getFileSystem(conf);
|
final FileSystem fs = historyFileAbsolute.getFileSystem(conf);
|
||||||
parser =
|
parser = new JobHistoryParser(fs, historyFileAbsolute);
|
||||||
new JobHistoryParser(historyFileAbsolute.getFileSystem(conf),
|
|
||||||
historyFileAbsolute);
|
|
||||||
final Path jobConfPath = new Path(historyFileAbsolute.getParent(),
|
final Path jobConfPath = new Path(historyFileAbsolute.getParent(),
|
||||||
JobHistoryUtils.getIntermediateConfFileName(jobId));
|
JobHistoryUtils.getIntermediateConfFileName(jobId));
|
||||||
final Configuration conf = new Configuration();
|
final Configuration conf = new Configuration();
|
||||||
|
|
Loading…
Reference in New Issue