[
https://issues.apache.org/jira/browse/HDDS-13077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Soumitra Sulav updated HDDS-13077:
----------------------------------
Description:
The issue appears to stem from an incompatibility between old and new Ozone
client jars. That’s due to a config introduced in the following change:
[HDDS-11656] – Default native ACL limits to user and user's primary group
Code Link:
[apache/ozone#7455|https://github.com/apache/ozone/pull/7455/files#diff-7c1277dbfbebe1cb4dcbab71bb2ebd6836b6fa7adfeed8b67fbd5787a464e4c8R47]
It may be caused by a mismatch between the runtime configuration values and the
compiled client code/code from the classpath jars.
Previously, the server-side default for ozone.om.group.rights was:
{{ozone.om.group.rights = ALL}}
Older clients were designed to interpret this single ACLType enum value
correctly.
However, after the recent update (HDDS-11656), the server default was changed
to a comma-delimited value:
{{ozone.om.group.rights = READ,LIST}}
At the same time, newer client code was updated to parse and handle multiple
ACLType values from this config.
If a client with older compiled code runs against a configuration that contains
the new multi-value default (READ,LIST), it currently fails at runtime, since
it attempts to interpret the full string "READ, LIST" as a single enum value,
which doesn't exist, and throws an IllegalArgumentException.
Error stacktrace:
{code:java}
25/05/15 10:02:41 ERROR client.OzoneClientFactory: Couldn't create RpcClient
protocol exception:
java.lang.IllegalArgumentException: No enum constant
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer.ACLType.READ, LIST
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer$ACLType.valueOf(IAccessAuthorizer.java:48)
at
org.apache.hadoop.ozone.security.acl.OzoneAclConfig.getGroupDefaultRights(OzoneAclConfig.java:62)
at
org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:232)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:248)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:115)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.<init>(BasicRootedOzoneClientAdapterImpl.java:191)
at
org.apache.hadoop.fs.ozone.RootedOzoneClientAdapterImpl.<init>(RootedOzoneClientAdapterImpl.java:51)
at
org.apache.hadoop.fs.ozone.RootedOzoneFileSystem.createAdapter(RootedOzoneFileSystem.java:97)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.initialize(BasicRootedOzoneFileSystem.java:185)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3451)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:161)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3556)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3503)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:521)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:269)
at OzoneClientRepro.main(OzoneClientRepro.java:20)
25/05/15 10:02:41 WARN fs.FileSystem: Failed to initialize fileystem
ofs://ozone1747280928/: java.io.IOException: Couldn't create RpcClient protocol
Exception in thread "main" java.io.IOException: Couldn't create RpcClient
protocol
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:257)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:115)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.<init>(BasicRootedOzoneClientAdapterImpl.java:191)
at
org.apache.hadoop.fs.ozone.RootedOzoneClientAdapterImpl.<init>(RootedOzoneClientAdapterImpl.java:51)
at
org.apache.hadoop.fs.ozone.RootedOzoneFileSystem.createAdapter(RootedOzoneFileSystem.java:97)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.initialize(BasicRootedOzoneFileSystem.java:185)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3451)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:161)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3556)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3503)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:521)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:269)
at OzoneClientRepro.main(OzoneClientRepro.java:20)
Caused by: java.lang.IllegalArgumentException: No enum constant
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer.ACLType.READ, LIST
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer$ACLType.valueOf(IAccessAuthorizer.java:48)
at
org.apache.hadoop.ozone.security.acl.OzoneAclConfig.getGroupDefaultRights(OzoneAclConfig.java:62)
at
org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:232)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:248)
... 12 more
{code}
was:
The issue appears to stem from an incompatibility between old and new Ozone
client jars. That’s due to a config introduced in the following change:
[HDDS-11656] – Default native ACL limits to user and user's primary group
Code Link: apache/ozone#7455
It may be caused by a mismatch between the runtime configuration values and the
compiled client code/code from the classpath jars.
Previously, the server-side default for ozone.om.group.rights was:
{{ozone.om.group.rights = ALL}}
Older clients were designed to interpret this single ACLType enum value
correctly.
However, after the recent update (HDDS-11656), the server default was changed
to a comma-delimited value:
{{ozone.om.group.rights = READ,LIST}}
At the same time, newer client code was updated to parse and handle multiple
ACLType values from this config.
If a client with older compiled code runs against a configuration that contains
the new multi-value default (READ,LIST), it currently fails at runtime, since
it attempts to interpret the full string "READ, LIST" as a single enum value,
which doesn't exist, and throws an IllegalArgumentException.
Error stacktrace:
{code:java}
25/05/15 10:02:41 ERROR client.OzoneClientFactory: Couldn't create RpcClient
protocol exception:
java.lang.IllegalArgumentException: No enum constant
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer.ACLType.READ, LIST
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer$ACLType.valueOf(IAccessAuthorizer.java:48)
at
org.apache.hadoop.ozone.security.acl.OzoneAclConfig.getGroupDefaultRights(OzoneAclConfig.java:62)
at
org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:232)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:248)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:115)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.<init>(BasicRootedOzoneClientAdapterImpl.java:191)
at
org.apache.hadoop.fs.ozone.RootedOzoneClientAdapterImpl.<init>(RootedOzoneClientAdapterImpl.java:51)
at
org.apache.hadoop.fs.ozone.RootedOzoneFileSystem.createAdapter(RootedOzoneFileSystem.java:97)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.initialize(BasicRootedOzoneFileSystem.java:185)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3451)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:161)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3556)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3503)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:521)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:269)
at OzoneClientRepro.main(OzoneClientRepro.java:20)
25/05/15 10:02:41 WARN fs.FileSystem: Failed to initialize fileystem
ofs://ozone1747280928/: java.io.IOException: Couldn't create RpcClient protocol
Exception in thread "main" java.io.IOException: Couldn't create RpcClient
protocol
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:257)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:115)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.<init>(BasicRootedOzoneClientAdapterImpl.java:191)
at
org.apache.hadoop.fs.ozone.RootedOzoneClientAdapterImpl.<init>(RootedOzoneClientAdapterImpl.java:51)
at
org.apache.hadoop.fs.ozone.RootedOzoneFileSystem.createAdapter(RootedOzoneFileSystem.java:97)
at
org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.initialize(BasicRootedOzoneFileSystem.java:185)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3451)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:161)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3556)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3503)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:521)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:269)
at OzoneClientRepro.main(OzoneClientRepro.java:20)
Caused by: java.lang.IllegalArgumentException: No enum constant
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer.ACLType.READ, LIST
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at
org.apache.hadoop.ozone.security.acl.IAccessAuthorizer$ACLType.valueOf(IAccessAuthorizer.java:48)
at
org.apache.hadoop.ozone.security.acl.OzoneAclConfig.getGroupDefaultRights(OzoneAclConfig.java:62)
at
org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:232)
at
org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:248)
... 12 more
{code}
> [compatibility] IllegalArgumentException: No enum constant on using old
> filesystem jars in the classpath first
> --------------------------------------------------------------------------------------------------------------
>
> Key: HDDS-13077
> URL: https://issues.apache.org/jira/browse/HDDS-13077
> Project: Apache Ozone
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Soumitra Sulav
> Priority: Blocker
>
> The issue appears to stem from an incompatibility between old and new Ozone
> client jars. That’s due to a config introduced in the following change:
> [HDDS-11656] – Default native ACL limits to user and user's primary group
> Code Link:
> [apache/ozone#7455|https://github.com/apache/ozone/pull/7455/files#diff-7c1277dbfbebe1cb4dcbab71bb2ebd6836b6fa7adfeed8b67fbd5787a464e4c8R47]
> It may be caused by a mismatch between the runtime configuration values and
> the compiled client code/code from the classpath jars.
> Previously, the server-side default for ozone.om.group.rights was:
> {{ozone.om.group.rights = ALL}}
> Older clients were designed to interpret this single ACLType enum value
> correctly.
> However, after the recent update (HDDS-11656), the server default was changed
> to a comma-delimited value:
> {{ozone.om.group.rights = READ,LIST}}
> At the same time, newer client code was updated to parse and handle multiple
> ACLType values from this config.
> If a client with older compiled code runs against a configuration that
> contains the new multi-value default (READ,LIST), it currently fails at
> runtime, since it attempts to interpret the full string "READ, LIST" as a
> single enum value, which doesn't exist, and throws an
> IllegalArgumentException.
> Error stacktrace:
> {code:java}
> 25/05/15 10:02:41 ERROR client.OzoneClientFactory: Couldn't create RpcClient
> protocol exception:
> java.lang.IllegalArgumentException: No enum constant
> org.apache.hadoop.ozone.security.acl.IAccessAuthorizer.ACLType.READ, LIST
> at java.base/java.lang.Enum.valueOf(Enum.java:240)
> at
> org.apache.hadoop.ozone.security.acl.IAccessAuthorizer$ACLType.valueOf(IAccessAuthorizer.java:48)
> at
> org.apache.hadoop.ozone.security.acl.OzoneAclConfig.getGroupDefaultRights(OzoneAclConfig.java:62)
> at
> org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:232)
> at
> org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:248)
> at
> org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:115)
> at
> org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.<init>(BasicRootedOzoneClientAdapterImpl.java:191)
> at
> org.apache.hadoop.fs.ozone.RootedOzoneClientAdapterImpl.<init>(RootedOzoneClientAdapterImpl.java:51)
> at
> org.apache.hadoop.fs.ozone.RootedOzoneFileSystem.createAdapter(RootedOzoneFileSystem.java:97)
> at
> org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.initialize(BasicRootedOzoneFileSystem.java:185)
> at
> org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3451)
> at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:161)
> at
> org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3556)
> at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3503)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:521)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:269)
> at OzoneClientRepro.main(OzoneClientRepro.java:20)
> 25/05/15 10:02:41 WARN fs.FileSystem: Failed to initialize fileystem
> ofs://ozone1747280928/: java.io.IOException: Couldn't create RpcClient
> protocol
> Exception in thread "main" java.io.IOException: Couldn't create RpcClient
> protocol
> at
> org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:257)
> at
> org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:115)
> at
> org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.<init>(BasicRootedOzoneClientAdapterImpl.java:191)
> at
> org.apache.hadoop.fs.ozone.RootedOzoneClientAdapterImpl.<init>(RootedOzoneClientAdapterImpl.java:51)
> at
> org.apache.hadoop.fs.ozone.RootedOzoneFileSystem.createAdapter(RootedOzoneFileSystem.java:97)
> at
> org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.initialize(BasicRootedOzoneFileSystem.java:185)
> at
> org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3451)
> at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:161)
> at
> org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3556)
> at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3503)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:521)
> at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:269)
> at OzoneClientRepro.main(OzoneClientRepro.java:20)
> Caused by: java.lang.IllegalArgumentException: No enum constant
> org.apache.hadoop.ozone.security.acl.IAccessAuthorizer.ACLType.READ, LIST
> at java.base/java.lang.Enum.valueOf(Enum.java:240)
> at
> org.apache.hadoop.ozone.security.acl.IAccessAuthorizer$ACLType.valueOf(IAccessAuthorizer.java:48)
> at
> org.apache.hadoop.ozone.security.acl.OzoneAclConfig.getGroupDefaultRights(OzoneAclConfig.java:62)
> at
> org.apache.hadoop.ozone.client.rpc.RpcClient.<init>(RpcClient.java:232)
> at
> org.apache.hadoop.ozone.client.OzoneClientFactory.getClientProtocol(OzoneClientFactory.java:248)
> ... 12 more
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]