public class NamespaceUpgrade extends Object implements org.apache.hadoop.util.Tool
The pre-0.96 paths and dir names are hardcoded in here.
| 构造器和说明 |
|---|
NamespaceUpgrade() |
| 限定符和类型 | 方法和说明 |
|---|---|
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. -- as data, archive, etc.; i.e. minus the dot.
|
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) |
public NamespaceUpgrade()
throws IOException
IOExceptionpublic void init()
throws IOException
IOExceptionpublic void upgradeTableDirs()
throws IOException,
DeserializationException
public void deleteRoot()
throws IOException
IOExceptionpublic void migrateDotDirs()
throws IOException
IOExceptionpublic void makeNamespaceDirs()
throws IOException
IOExceptionpublic void migrateTables()
throws IOException
IOExceptionpublic void migrateSnapshots()
throws IOException
IOExceptionpublic void migrateMeta()
throws IOException
IOExceptionpublic void migrateACL()
throws IOException
IOExceptionpublic static boolean verifyNSUpgrade(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir)
throws IOException
IOExceptionpublic int run(String[] args) throws Exception
run 在接口中 org.apache.hadoop.util.ToolExceptionpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf 在接口中 org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf 在接口中 org.apache.hadoop.conf.ConfigurableCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.