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, limitDecimalTo2
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public DFSAdmin()
public DFSAdmin(Configuration conf)
protected DistributedFileSystem getDFS() throws IOException
IOException
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 saveNamespace() throws IOException
public int refreshNodes() throws IOException
IOException
public 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.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 refreshServiceAcl() throws IOException
NameNode
.IOException
public int refreshUserToGroupsMappings() throws IOException
NameNode
.IOException
public int refreshSuperUserGroupsConfiguration() throws IOException
NameNode
.IOException
Copyright © 2009 The Apache Software Foundation