|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.migration.NamespaceUpgrade
public class NamespaceUpgrade
Upgrades old 0.94 filesystem layout to namespace layout Does the following: - creates system namespace directory and move .META. table there renaming .META. table to hbase:meta, this in turn would require to re-encode the region directory name
The pre-0.96 paths and dir names are hardcoded in here.
Constructor Summary | |
---|---|
NamespaceUpgrade()
|
Method Summary | |
---|---|
void |
deleteRoot()
Remove the -ROOT- dir. |
org.apache.hadoop.conf.Configuration |
getConf()
|
void |
init()
|
void |
makeNamespaceDirs()
Create the system and default namespaces dirs |
void |
migrateACL()
|
void |
migrateDotDirs()
Rename all the dot dirs -- .data, .archive, etc. |
void |
migrateMeta()
|
void |
migrateSnapshots()
|
void |
migrateTables()
Migrate all tables into respective namespaces, either default or system. |
int |
run(String[] args)
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
void |
upgradeTableDirs()
|
static boolean |
verifyNSUpgrade(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamespaceUpgrade() throws IOException
IOException
Method Detail |
---|
public void init() throws IOException
IOException
public void upgradeTableDirs() throws IOException, DeserializationException
IOException
DeserializationException
public void deleteRoot() throws IOException
IOException
public void migrateDotDirs() throws IOException
IOException
public void makeNamespaceDirs() throws IOException
IOException
public void migrateTables() throws IOException
IOException
public void migrateSnapshots() throws IOException
IOException
public void migrateMeta() throws IOException
IOException
public void migrateACL() throws IOException
IOException
public static boolean verifyNSUpgrade(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path rootDir) throws IOException
IOException
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |