org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool@Private
public class RouterAdmin
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Constructor | Description |
|---|---|
RouterAdmin(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addMount(java.lang.String[] parameters,
int i) |
Add a mount table entry or update if it exists.
|
boolean |
addMount(AddMountAttributes addMountAttributes) |
Add a mount table entry or update if it exists.
|
static boolean |
dumpStateStore(org.apache.hadoop.conf.Configuration conf,
java.io.PrintStream output) |
Dumps the contents of the StateStore to stdout.
|
int |
genericRefresh(java.lang.String[] argv,
int i) |
|
void |
listMounts(java.lang.String[] argv,
int i) |
List mount points.
|
static void |
main(java.lang.String[] argv) |
|
static java.lang.String |
normalizeFileSystemPath(java.lang.String str) |
Normalize a path for that filesystem.
|
void |
printUsage() |
Print the usage message.
|
boolean |
removeMount(java.lang.String path) |
Remove mount point.
|
int |
run(java.lang.String[] argv) |
|
boolean |
updateMount(java.lang.String[] parameters,
int i) |
Update a mount table entry.
|
public static void main(java.lang.String[] argv)
throws java.lang.Exception
java.lang.Exceptionpublic void printUsage()
public int run(java.lang.String[] argv)
throws java.lang.Exception
run in interface org.apache.hadoop.util.Tooljava.lang.Exceptionpublic boolean addMount(java.lang.String[] parameters,
int i)
throws java.io.IOException
parameters - Parameters for the mount point.i - Index in the parameters.java.io.IOException - If it cannot add the mount point.public boolean addMount(AddMountAttributes addMountAttributes) throws java.io.IOException
addMountAttributes - attributes associated with add mount point request.java.io.IOException - Error adding the mount point.public boolean updateMount(java.lang.String[] parameters,
int i)
throws java.io.IOException
parameters - Parameters for the mount point.i - Index in the parameters.java.io.IOException - If there is an error.public boolean removeMount(java.lang.String path)
throws java.io.IOException
path - Path to remove.java.io.IOException - If it cannot be removed.public void listMounts(java.lang.String[] argv,
int i)
throws java.io.IOException
argv - Parameters of the path.i - Index in the parameters.java.io.IOException - If it cannot be listed.public int genericRefresh(java.lang.String[] argv,
int i)
throws java.io.IOException
java.io.IOExceptionpublic static boolean dumpStateStore(org.apache.hadoop.conf.Configuration conf,
java.io.PrintStream output)
throws java.io.IOException
conf - the configuration.output - the print output stream.java.io.IOException - if the State store is not available.public static java.lang.String normalizeFileSystemPath(java.lang.String str)
str - Path to normalize. The path doesn't have scheme or authority.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.