/** * Try to map the given namenode ID to its service address. */ @Override protected HAServiceTarget resolveTarget(String nnId) { HdfsConfiguration conf = (HdfsConfiguration)getConf(); return new NNHAServiceTarget(conf, nameserviceId, nnId); }
@Override public String getLongUsage() { return getShortUsage() + "\n" + "List all encryption zones. Requires superuser permissions.\n\n"; }
@Override public String getShortUsage() { return "[" + getName() + " [-stats] [-path <path>] [-pool <pool>] [-id <id>]" + "]\n"; }
@Override public String getLongUsage() { final TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<command-name>", "The command for which to get " + "detailed help. If no command is specified, print detailed help for " + "all commands"); return getShortUsage() + "\n" + "Get detailed help about a command.\n\n" + listing.toString(); }
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<id>", "The id of the cache directive to remove. " + "You must have write permission on the pool of the " + "directive in order to remove it. To see a list " + "of cache directive IDs, use the -listDirectives command."); return getShortUsage() + "\n" + "Remove a cache directive.\n\n" + listing.toString(); }
@Override public String getLongUsage() { final TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<path>", "The path of the encryption zone to create. " + "It must be an empty directory. A trash directory is provisioned " + "under this path."); listing.addRow("<keyName>", "Name of the key to use for the " + "encryption zone."); return getShortUsage() + "\n" + "Create a new encryption zone.\n\n" + listing.toString(); }
@Override public String getLongUsage() { final TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<path>", "The path to the root of the encryption zone. "); return getShortUsage() + "\n" + "Provision a trash directory for an encryption zone.\n\n" + listing.toString(); }
@Override public String getLongUsage() { final TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<file>", "The path of the xml file which defines the EC policies to add"); return getShortUsage() + "\n" + "Add a list of user defined erasure coding policies.\n" + listing.toString(); }
@Override public String getLongUsage() { final TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<path>", "The path to the file to show encryption info."); return getShortUsage() + "\n" + "Get encryption info of a file.\n\n" + listing.toString(); }
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<path>", "The path of the directory " + "from which the erasure coding policy will be unset."); return getShortUsage() + "\n" + "Unset the erasure coding policy for a directory.\n\n" + listing.toString(); }
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<policy>", "The name of the erasure coding policy"); return getShortUsage() + "\n" + "Enable the erasure coding policy.\n\n" + listing.toString(); }
@Override public String getLongUsage() { TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<policy>", "The name of the erasure coding policy"); return getShortUsage() + "\n" + "Disable the erasure coding policy.\n\n" + listing.toString(); }
@Override public String getLongUsage() { final TableListing listing = AdminHelper.getOptionDescriptionListing(); listing.addRow("<action>", "The re-encrypt action to perform. Must be -start or -cancel."); listing.addRow("<zone>", "The path to the zone to be re-encrypted."); return getShortUsage() + "\n" + "Issue a re-encryption command for" + " an encryption zone. Requires superuser permissions.\n\n" + listing.toString(); }
@Override int doWorkInternal(GetConf tool, String[] args) throws Exception { this.key = args[0]; return super.doWorkInternal(tool, args); } }
@Override public String getShortUsage() { return "[" + getName() + " <name> [-owner <owner>] " + "[-group <group>] [-mode <mode>] [-limit <limit>] " + "[-defaultReplication <defaultReplication>] [-maxTtl <maxTtl>]]\n"; }
@Override public String getShortUsage() { return "[" + getName() + " -id <id> [-path <path>] [-force] [-replication <replication>] " + "[-pool <pool-name>] [-ttl <time-to-live>]]\n"; }
@Override public String getLongUsage() { return getShortUsage() + "\n" + "List re-encryption statuses of encryption zones. " + "Requires superuser permissions.\n\n"; }
@Override public String getShortUsage() { return "[" + getName() + " -path <path> [-policy <policy>] [-replicate]]\n"; }
@Override public String getLongUsage() { return getShortUsage() + "\n" + "Get the list of all erasure coding policies.\n"; }
@Override public String getLongUsage() { return getShortUsage() + "\n" + "Get the list of supported erasure coding codecs and coders.\n" + "A coder is an implementation of a codec. A codec can have " + "different implementations, thus different coders.\n" + "The coders for a codec are listed in a fall back order.\n"; }