|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.fs.FsShell
org.apache.hadoop.hdfs.tools.DFSAdmin
@InterfaceAudience.Private 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(org.apache.hadoop.conf.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 |
printTopology()
Display each rack and the nodes assigned to that rack, as determined by the NameNode, in a hierarchical manner. |
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 |
refreshUserToGroupsMappings()
Refresh the user-to-groups mappings on the NameNode . |
void |
report()
Gives a report on how the FileSystem is doing. |
int |
restoreFaileStorage(String arg)
Command to enable/disable/check restoring of failed storage replicas in the namenode. |
int |
run(String[] argv)
|
int |
saveNamespace()
Command to ask the namenode to save the namespace. |
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(org.apache.hadoop.conf.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 saveNamespace() throws IOException
IOException
ClientProtocol.saveNamespace()
public int restoreFaileStorage(String arg) throws IOException
IOException
ClientProtocol.restoreFailedStorage(String arg)
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 printTopology() throws IOException
IOException
- If an error while getting datanode reportpublic int refreshServiceAcl() throws IOException
NameNode
.
IOException
public int refreshUserToGroupsMappings() throws IOException
NameNode
.
IOException
public int run(String[] argv) throws Exception
run
in interface org.apache.hadoop.util.Tool
run
in class org.apache.hadoop.fs.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 |