public class DFSAdmin extends FsShell
| 构造器和说明 |
|---|
DFSAdmin()
Construct a DFSAdmin object.
|
DFSAdmin(Configuration conf)
Construct a DFSAdmin object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
finalizeUpgrade()
Command to ask the namenode to finalize previously performed upgrade.
|
protected DistributedFileSystem |
getDFS() |
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.
|
int |
refreshServiceAcl()
Refresh the authorization policy on the
NameNode. |
int |
refreshSuperUserGroupsConfiguration()
refreshSuperUserGroupsConfiguration
NameNode. |
int |
refreshUserToGroupsMappings()
Refresh the user-to-groups mappings on the
NameNode. |
void |
report()
Gives a report on how the FileSystem is doing.
|
int |
run(String[] argv)
run
|
int |
saveNamespace()
Command to ask the namenode to save the namespace.
|
int |
setBalancerBandwidth(String[] argv,
int idx)
Command to ask the namenode to set the balancer bandwidth for all of the
datanodes.
|
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.
|
byteDesc, close, getCurrentTrashDir, getFS, getTrash, init, limitDecimalTo2getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic DFSAdmin()
public DFSAdmin(Configuration conf)
protected DistributedFileSystem getDFS() throws IOException
IOExceptionpublic 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 saveNamespace()
throws IOException
public int refreshNodes()
throws IOException
IOExceptionpublic int setBalancerBandwidth(String[] argv, int idx) throws IOException
argv - List of of command line parameters.idx - The index of the command that is being processed.IOExceptionpublic int finalizeUpgrade()
throws IOException
IOExceptionpublic int upgradeProgress(String[] argv, int idx) throws IOException
IOExceptionpublic 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 refreshServiceAcl()
throws IOException
NameNode.IOExceptionpublic int refreshUserToGroupsMappings()
throws IOException
NameNode.IOExceptionpublic int refreshSuperUserGroupsConfiguration()
throws IOException
NameNode.IOExceptionCopyright © 2009 The Apache Software Foundation