public class NamespaceUpgrade extends Object
The pre-0.96 paths and dir names are hardcoded in here.
Constructor and Description |
---|
NamespaceUpgrade() |
Modifier and Type | Method and Description |
---|---|
void |
deleteRoot()
Remove the -ROOT- dir.
|
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(Configuration conf) |
void |
upgradeTableDirs() |
static boolean |
verifyNSUpgrade(FileSystem fs,
Path rootDir) |
public NamespaceUpgrade() throws IOException
IOException
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(FileSystem fs, Path rootDir) throws IOException
IOException
public void setConf(Configuration conf)
public Configuration getConf()