|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.conf.Configured org.apache.hadoop.fs.FsShell org.apache.hadoop.dfs.DFSAdmin
public class DFSAdmin
This class provides some DFS administrative access.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.fs.FsShell |
---|
dateForm, fs, modifFmt |
Constructor Summary | |
---|---|
DFSAdmin()
Construct a DFSAdmin object. |
|
DFSAdmin(Configuration conf)
Construct a DFSAdmin object. |
Method Summary | |
---|---|
int |
finalizeUpgrade()
Command to ask the namenode to finalize previously performed upgrade. |
static void |
main(String[] argv)
main() has some simple utility methods. |
int |
metaSave(String[] argv,
int idx)
Dumps DFS data structures into specified file. |
int |
refreshNodes()
Command to ask the namenode to reread the hosts and excluded hosts file. |
void |
report()
Gives a report on how the FileSystem is doing. |
int |
run(String[] argv)
run |
void |
setSafeMode(String[] argv,
int idx)
Safe mode maintenance command. |
int |
upgradeProgress(String[] argv,
int idx)
Command to request current distributed upgrade status, a detailed status, or to force the upgrade to proceed. |
Methods inherited from class org.apache.hadoop.fs.FsShell |
---|
byteDesc, close, getCurrentTrashDir, init, limitDecimalTo2 |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
---|
getConf, setConf |
Constructor Detail |
---|
public DFSAdmin()
public DFSAdmin(Configuration conf)
Method Detail |
---|
public void report() throws IOException
IOException
- if the filesystem does not exist.public void setSafeMode(String[] argv, int idx) throws IOException
argv
- List of of command line parameters.idx
- The index of the command that is being processed.
IOException
- if the filesystem does not exist.public int refreshNodes() throws IOException
IOException
public int finalizeUpgrade() throws IOException
IOException
public int upgradeProgress(String[] argv, int idx) throws IOException
IOException
public int metaSave(String[] argv, int idx) throws IOException
argv
- List of of command line parameters.idx
- The index of the command that is being processed.
IOException
- if an error accoured wile accessing
the file or path.public int run(String[] argv) throws Exception
FsShell
run
in interface Tool
run
in class FsShell
argv
- The parameters passed to this program.
Exception
- if the filesystem does not exist.public static void main(String[] argv) throws Exception
argv
- Command line parameters.
Exception
- if the filesystem does not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |