@Deprecated public class FSTableDescriptorMigrationToSubdir extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG
Deprecated.
|
Constructor and Description |
---|
FSTableDescriptorMigrationToSubdir()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private static void |
migrateFsTableDescriptors(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir)
Deprecated.
Migrates all snapshots, user tables and system tables that require migration.
|
static void |
migrateFSTableDescriptorsIfNecessary(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir)
Deprecated.
|
private static void |
migrateTable(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir)
Deprecated.
Migrates table info files.
|
private static void |
migrateTableIfExists(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
TableName tableName)
Deprecated.
|
private static boolean |
needsMigration(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir)
Deprecated.
Determines if migration is required by checking to see whether the hbase:meta table has been
migrated.
|
public FSTableDescriptorMigrationToSubdir()
public static void migrateFSTableDescriptorsIfNecessary(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir) throws IOException
IOException
private static boolean needsMigration(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir) throws IOException
IOException
private static void migrateFsTableDescriptors(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir) throws IOException
IOException
private static void migrateTableIfExists(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir, TableName tableName) throws IOException
IOException
private static void migrateTable(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.