java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service@Public
@Unstable
public class HistoryFileManager
extends org.apache.hadoop.service.AbstractService
| Modifier and Type | Class | Description |
|---|---|---|
class |
HistoryFileManager.HistoryFileInfo |
| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache |
jobListCache |
|
protected java.util.concurrent.ThreadPoolExecutor |
moveToDoneExecutor |
| Constructor | Description |
|---|---|
HistoryFileManager() |
| Modifier and Type | Method | Description |
|---|---|---|
protected HistoryFileManager.HistoryFileInfo |
createHistoryFileInfo(org.apache.hadoop.fs.Path historyFile,
org.apache.hadoop.fs.Path confFile,
org.apache.hadoop.fs.Path summaryFile,
org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo jobIndexInfo,
boolean isInDone) |
|
protected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache |
createJobListCache() |
|
protected java.util.concurrent.ThreadPoolExecutor |
createMoveToDoneThreadPool(int numMoveThreads) |
|
protected boolean |
deleteDir(org.apache.hadoop.fs.FileStatus serialDir) |
|
protected java.util.List<org.apache.hadoop.fs.FileStatus> |
findTimestampedDirectories() |
Finds all history directories with a timestamp component by scanning the
filesystem.
|
java.util.Collection<HistoryFileManager.HistoryFileInfo> |
getAllFileInfo() |
|
HistoryFileManager.HistoryFileInfo |
getFileInfo(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId) |
|
protected static java.util.List<org.apache.hadoop.fs.FileStatus> |
scanDirectory(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileContext fc,
org.apache.hadoop.fs.PathFilter pathFilter) |
|
protected java.util.List<org.apache.hadoop.fs.FileStatus> |
scanDirectoryForHistoryFiles(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileContext fc) |
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache jobListCache
@VisibleForTesting protected java.util.concurrent.ThreadPoolExecutor moveToDoneExecutor
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected java.util.concurrent.ThreadPoolExecutor createMoveToDoneThreadPool(int numMoveThreads)
public void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache createJobListCache()
protected HistoryFileManager.HistoryFileInfo createHistoryFileInfo(org.apache.hadoop.fs.Path historyFile, org.apache.hadoop.fs.Path confFile, org.apache.hadoop.fs.Path summaryFile, org.apache.hadoop.mapreduce.v2.jobhistory.JobIndexInfo jobIndexInfo, boolean isInDone)
@VisibleForTesting
protected static java.util.List<org.apache.hadoop.fs.FileStatus> scanDirectory(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileContext fc,
org.apache.hadoop.fs.PathFilter pathFilter)
throws java.io.IOException
java.io.IOExceptionprotected java.util.List<org.apache.hadoop.fs.FileStatus> scanDirectoryForHistoryFiles(org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FileContext fc)
throws java.io.IOException
java.io.IOExceptionprotected java.util.List<org.apache.hadoop.fs.FileStatus> findTimestampedDirectories()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Collection<HistoryFileManager.HistoryFileInfo> getAllFileInfo() throws java.io.IOException
java.io.IOExceptionpublic HistoryFileManager.HistoryFileInfo getFileInfo(org.apache.hadoop.mapreduce.v2.api.records.JobId jobId) throws java.io.IOException
java.io.IOExceptionprotected boolean deleteDir(org.apache.hadoop.fs.FileStatus serialDir)
throws org.apache.hadoop.security.AccessControlException,
java.io.FileNotFoundException,
org.apache.hadoop.fs.UnsupportedFileSystemException,
java.io.IOException
org.apache.hadoop.security.AccessControlExceptionjava.io.FileNotFoundExceptionorg.apache.hadoop.fs.UnsupportedFileSystemExceptionjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.