This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new a1bc9b86de HDDS-5704. Ozone URI syntax description in help content
needs to mention about ozone service id (#3862)
a1bc9b86de is described below
commit a1bc9b86dee0bc94a426f8b844268ed84f94b0fa
Author: Galsza <[email protected]>
AuthorDate: Mon Dec 5 15:56:25 2022 +0100
HDDS-5704. Ozone URI syntax description in help content needs to mention
about ozone service id (#3862)
---
.../java/org/apache/hadoop/ozone/shell/Shell.java | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git
a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/Shell.java
b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/Shell.java
index ef75943332..97e160651b 100644
--- a/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/Shell.java
+++ b/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/Shell.java
@@ -29,11 +29,22 @@ import org.apache.hadoop.ozone.om.exceptions.OMException;
*/
public abstract class Shell extends GenericCli {
- public static final String OZONE_URI_DESCRIPTION = "Ozone URI could start "
- + "with o3:// or without prefix. URI may contain the host/serviceId "
- + "and port of the OM server. Both are optional. "
- + "If they are not specified it will be identified from "
- + "the config files.";
+ public static final String OZONE_URI_DESCRIPTION =
+ "Ozone URI could either be a full URI or short URI.\n" +
+ "Full URI should start with o3://, in case of non-HA\nclusters it " +
+ "should be followed by the host name and\noptionally the port " +
+ "number. In case of HA clusters\nthe service id should be used. " +
+ "Service id provides a\nlogical name for multiple hosts and it is " +
+ "defined\nin the property ozone.om.service.ids.\n" +
+ "Example of a full URI with host name and port number\nfor a key:" +
+ "\no3://omhostname:9862/vol1/bucket1/key1\n" +
+ "With a service id for a volume:" +
+ "\no3://omserviceid/vol1/\n" +
+ "Short URI should start from the volume." +
+ "\nExample of a short URI for a bucket:" +
+ "\nvol1/bucket1\n" +
+ "Any unspecified information will be identified from\n" +
+ "the config files.\n";
public Shell() {
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]