Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hadoop-hdds/docs/content/tools/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Admin commands:
* **classpath** - Prints the class path needed to get the hadoop jar and the
required libraries.
* **dtutil** - Operations related to delegation tokens
* **envvars** - Display computed Hadoop environment variables.
* **envvars** - Display computed Ozone environment variables.
* **getconf** - Reads ozone config values from configuration.
* **genconf** - Generate minimally required ozone configs and output to
ozone-site.xml.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* Shell commands for native rpc object manipulation.
*/
@Command(name = "ozone sh", aliases = "sh",
@Command(name = "ozone sh", aliases = {"sh", "shell"},
description = "Shell for Ozone object store",
subcommands = {
BucketCommands.class,
Expand Down
8 changes: 4 additions & 4 deletions hadoop-ozone/dist/src/shell/ozone/ozone
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ function ozone_usage
ozone_add_option "--hosts filename" "list of hosts to use in worker mode"
ozone_add_option "--loglevel level" "set the log4j level for this command"
ozone_add_option "--workers" "turn on worker mode"
ozone_add_option "--jvmargs arguments" "append JVM options to any existing options defined in the OZONE_OPTS environment variable. Any defined in OZONE_CLIENT_OPTS will be append after these jvmargs"
ozone_add_option "--validate (continue)" "validates if all jars as indicated in the corresponding OZONE_RUN_ARTIFACT_NAME classpath file are present, command execution shall continue post validation failure if 'continue' is passed"
ozone_add_option "--jvmargs arguments" "append JVM options to any existing options defined in the OZONE_OPTS environment variable. Any defined in OZONE_CLIENT_OPTS will be appended after these jvmargs"
ozone_add_option "--validate [continue]" "validate that all required jars are present on the classpath; with 'continue', keep running even if validation fails"

ozone_add_subcommand "classpath" client "prints the class path needed for running ozone commands"
ozone_add_subcommand "completion" client "generate autocompletion script for bash/zsh"
ozone_add_subcommand "datanode" daemon "run a HDDS datanode"
ozone_add_subcommand "envvars" client "display computed Hadoop environment variables"
ozone_add_subcommand "envvars" client "display computed Ozone environment variables"
ozone_add_subcommand "daemonlog" admin "get/set the log level for each daemon"
ozone_add_subcommand "freon" client "runs an ozone data generator"
ozone_add_subcommand "fs" client "run a filesystem command on Ozone file system. Equivalent to 'hadoop fs'"
Expand All @@ -53,7 +53,7 @@ function ozone_usage
ozone_add_subcommand "httpfs" daemon "run the HTTPFS compatible REST gateway"
ozone_add_subcommand "csi" daemon "run the standalone CSI daemon"
ozone_add_subcommand "recon" daemon "run the Recon service"
ozone_add_subcommand "sh" client "command line interface for object store operations"
ozone_add_subcommand "sh" client "command line interface for object store operations (alias: shell)"
ozone_add_subcommand "s3" client "command line interface for s3 related operations"
ozone_add_subcommand "tenant" client "command line interface for multi-tenant related operations"
ozone_add_subcommand "insight" client "tool to get runtime operation information"
Expand Down
4 changes: 2 additions & 2 deletions hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ function ozone_debug
## @replaceable yes
function ozone_validate_classpath_usage
{
description=$'The --validate flag validates if all jars as indicated in the corresponding OZONE_RUN_ARTIFACT_NAME classpath file are present\n\n'
description=$'The --validate flag checks that all jars required for the command are present on the classpath\n\n'
usage_text=$'Usage I: ozone --validate classpath <ARTIFACTNAME>\nUsage II: ozone --validate [OPTIONS] --daemon start|status|stop csi|datanode|om|recon|s3g|scm\n\n'
options=$' OPTIONS is none or any of:\n\ncontinue\tcommand execution shall continue even if validation fails'
ozone_error "${description}${usage_text}${options}"
exit 1
}

## @description Validates if all jars as indicated in the corresponding OZONE_RUN_ARTIFACT_NAME classpath file are present
## @description Validates that all jars required for the command are present on the classpath
## @audience private
## @stability evolving
## @replaceable yes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private static final class Ozone {
private String debug;

@Option(names = {"--daemon"},
description = "attempt to add class files from build tree")
description = "operate on a daemon")
private String daemon;

@Option(names = {"--help"},
Expand Down Expand Up @@ -168,8 +168,8 @@ private static final class Ozone {
private String jvmargs;

@Option(names = {"--validate"},
description = "validates if all jars as indicated in the corresponding OZONE_RUN_ARTIFACT_NAME classpath " +
"file are present, command execution shall continue post validation failure if 'continue' is passed")
description = "validate that all required jars are present on the classpath; " +
"with 'continue', keep running even if validation fails")
private String validate;
}
}