|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.backup.HFileArchiver
public class HFileArchiver
Utility class to handle the removal of HFiles (or the respective StoreFiles)
for a HRegion from the FileSystem. The hfiles will be archived or deleted, depending on
the state of the system.
| Method Summary | |
|---|---|
static void |
archiveFamily(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo parent,
org.apache.hadoop.fs.Path tableDir,
byte[] family)
Remove from the specified region the store files of the specified column family, either by archiving them or outright deletion |
static void |
archiveRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HRegionInfo info)
Cleans up all the files for a HRegion by archiving the HFiles to the archive directory |
static boolean |
archiveRegion(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootdir,
org.apache.hadoop.fs.Path tableDir,
org.apache.hadoop.fs.Path regionDir)
Remove an entire region from the table directory via archiving the region's hfiles. |
static void |
archiveStoreFile(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HRegionInfo regionInfo,
org.apache.hadoop.fs.Path tableDir,
byte[] family,
org.apache.hadoop.fs.Path storeFile)
Archive the store file |
static void |
archiveStoreFiles(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HRegionInfo regionInfo,
org.apache.hadoop.fs.Path tableDir,
byte[] family,
Collection<StoreFile> compactedFiles)
Remove the store files, either by archiving them or outright deletion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void archiveRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HRegionInfo info)
throws IOException
conf - the configuration to usefs - the file system objectinfo - HRegionInfo for region to be deleted
IOException
public static boolean archiveRegion(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootdir,
org.apache.hadoop.fs.Path tableDir,
org.apache.hadoop.fs.Path regionDir)
throws IOException
fs - FileSystem from which to remove the regionrootdir - Path to the root directory where hbase files are stored (for building
the archive path)tableDir - Path to where the table is being stored (for building the archive path)regionDir - Path to where a region is being stored (for building the archive path)
IOException - if the request cannot be completed
public static void archiveFamily(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo parent,
org.apache.hadoop.fs.Path tableDir,
byte[] family)
throws IOException
fs - the filesystem where the store files liveconf - Configuration to examine to determine the archive directoryparent - Parent region hosting the store filestableDir - Path to where the table is being stored (for building the archive path)family - the family hosting the store files
IOException - if the files could not be correctly disposed.
public static void archiveStoreFiles(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HRegionInfo regionInfo,
org.apache.hadoop.fs.Path tableDir,
byte[] family,
Collection<StoreFile> compactedFiles)
throws IOException
conf - Configuration to examine to determine the archive directoryfs - the filesystem where the store files liveregionInfo - HRegionInfo of the region hosting the store filesfamily - the family hosting the store filescompactedFiles - files to be disposed of. No further reading of these files should be
attempted; otherwise likely to cause an IOException
IOException - if the files could not be correctly disposed.
public static void archiveStoreFile(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HRegionInfo regionInfo,
org.apache.hadoop.fs.Path tableDir,
byte[] family,
org.apache.hadoop.fs.Path storeFile)
throws IOException
fs - the filesystem where the store files liveregionInfo - region hosting the store filesconf - Configuration to examine to determine the archive directorytableDir - Path to where the table is being stored (for building the archive path)family - the family hosting the store filesstoreFile - file to be archived
IOException - if the files could not be correctly disposed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||