You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tanvi Penumudy (Jira)" <ji...@apache.org> on 2022/06/01 13:53:00 UTC
[jira] [Updated] (HDDS-6819) Add LEGACY to AllowedBucketLayouts in CreateBucketHandler
[ https://issues.apache.org/jira/browse/HDDS-6819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tanvi Penumudy updated HDDS-6819:
---------------------------------
Description:
This task is to add {{LEGACY}} to {{AllowedBucketLayouts}} in the {{CreateBucketHandler}} class.
[CreateBucketHandler.java#L65|https://github.com/apache/ozone/blob/master/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java#L65]
{code:java}
enum AllowedBucketLayouts {
FILE_SYSTEM_OPTIMIZED("FILE_SYSTEM_OPTIMIZED"),
OBJECT_STORE("OBJECT_STORE"),
LEGACY("LEGACY")
{code}
While executing the {{ozone sh bucket create}} command and passing an {{INVALID}} bucket layout, we currently get the following error message:
{code:java}
Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, DEFAULT, ] (case-sensitive) but was 'INVALID'
{code}
After the changes, this would be modified to:
{code:java}
Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, LEGACY] (case-sensitive) but was 'INVALID'
{code}
Similarly, {{ozone sh bucket create}} gives the following description for {{-l, --layout:}}
{code:java}
-l, --layout=<allowedBucketLayout>
Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
OBJECT_STORE,
{code}
After the changes, this would be modified to:
{code:java}
-l, --layout=<allowedBucketLayout>
Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
OBJECT_STORE, LEGACY
{code}
was:
This task is to add {{LEGACY}} to {{AllowedBucketLayouts}} in the {{CreateBucketHandler}} class.
[CreateBucketHandler.java#L65|https://github.com/apache/ozone/blob/master/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java#L65]
{code:java}
enum AllowedBucketLayouts {
FILE_SYSTEM_OPTIMIZED("FILE_SYSTEM_OPTIMIZED"),
OBJECT_STORE("OBJECT_STORE"),
LEGACY("LEGACY")
{code}
While executing the {{ozone sh bucket create}} command and passing an {{INVALID}} bucket layout, we currently get the following error message:
{code:java}
Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, DEFAULT, ] (case-sensitive) but was 'INVALID'
{code}
After the changes, this would be modified to:
{code:java}
Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, LEGACY] (case-sensitive) but was 'INVALID'
{code}
Similarly, {{ozone sh bucket create}} gives the following description for {{"-l", "--layout":}}
{code:java}
-l, --layout=<allowedBucketLayout>
Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
OBJECT_STORE,
{code}
After the changes, this would be modified to:
{code:java}
-l, --layout=<allowedBucketLayout>
Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
OBJECT_STORE, LEGACY
{code}
> Add LEGACY to AllowedBucketLayouts in CreateBucketHandler
> ---------------------------------------------------------
>
> Key: HDDS-6819
> URL: https://issues.apache.org/jira/browse/HDDS-6819
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone CLI, Ozone Manager
> Reporter: Tanvi Penumudy
> Assignee: Tanvi Penumudy
> Priority: Major
>
> This task is to add {{LEGACY}} to {{AllowedBucketLayouts}} in the {{CreateBucketHandler}} class.
> [CreateBucketHandler.java#L65|https://github.com/apache/ozone/blob/master/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/CreateBucketHandler.java#L65]
> {code:java}
> enum AllowedBucketLayouts {
> FILE_SYSTEM_OPTIMIZED("FILE_SYSTEM_OPTIMIZED"),
> OBJECT_STORE("OBJECT_STORE"),
> LEGACY("LEGACY")
> {code}
> While executing the {{ozone sh bucket create}} command and passing an {{INVALID}} bucket layout, we currently get the following error message:
> {code:java}
> Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, DEFAULT, ] (case-sensitive) but was 'INVALID'
> {code}
> After the changes, this would be modified to:
> {code:java}
> Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, LEGACY] (case-sensitive) but was 'INVALID'
> {code}
> Similarly, {{ozone sh bucket create}} gives the following description for {{-l, --layout:}}
> {code:java}
> -l, --layout=<allowedBucketLayout>
> Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
> OBJECT_STORE,
> {code}
> After the changes, this would be modified to:
> {code:java}
> -l, --layout=<allowedBucketLayout>
> Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
> OBJECT_STORE, LEGACY
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org