hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Krogen (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-14245) Class cast error in GetGroups with ObserverReadProxyProvider
Date Fri, 04 Oct 2019 18:42:01 GMT

    [ https://issues.apache.org/jira/browse/HDFS-14245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16944751#comment-16944751
] 

Erik Krogen commented on HDFS-14245:
------------------------------------

Backported to 3.2 and 3.1, but this depends on HDFS-14162, so I'll wait to put together a
branch-2 patch until that backport is committed.

> Class cast error in GetGroups with ObserverReadProxyProvider
> ------------------------------------------------------------
>
>                 Key: HDFS-14245
>                 URL: https://issues.apache.org/jira/browse/HDFS-14245
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: HDFS-12943
>            Reporter: Shen Yinjie
>            Assignee: Erik Krogen
>            Priority: Major
>             Fix For: 3.3.0, 3.1.4, 3.2.2
>
>         Attachments: HDFS-14245.000.patch, HDFS-14245.001.patch, HDFS-14245.002.patch,
HDFS-14245.003.patch, HDFS-14245.004.patch, HDFS-14245.005.patch, HDFS-14245.006.patch, HDFS-14245.007.patch,
HDFS-14245.patch
>
>
> Run "hdfs groups" with ObserverReadProxyProvider, Exception throws as :
> {code:java}
> Exception in thread "main" java.io.IOException: Couldn't create proxy provider class
org.apache.hadoop.hdfs.server.namenode.ha.ObserverReadProxyProvider
>  at org.apache.hadoop.hdfs.NameNodeProxiesClient.createFailoverProxyProvider(NameNodeProxiesClient.java:261)
>  at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:119)
>  at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:95)
>  at org.apache.hadoop.hdfs.tools.GetGroups.getUgmProtocol(GetGroups.java:87)
>  at org.apache.hadoop.tools.GetGroupsBase.run(GetGroupsBase.java:71)
>  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
>  at org.apache.hadoop.hdfs.tools.GetGroups.main(GetGroups.java:96)
> Caused by: java.lang.reflect.InvocationTargetException
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>  at org.apache.hadoop.hdfs.NameNodeProxiesClient.createFailoverProxyProvider(NameNodeProxiesClient.java:245)
>  ... 7 more
> Caused by: java.lang.ClassCastException: org.apache.hadoop.hdfs.server.namenode.ha.NameNodeHAProxyFactory
cannot be cast to org.apache.hadoop.hdfs.server.namenode.ha.ClientHAProxyFactory
>  at org.apache.hadoop.hdfs.server.namenode.ha.ObserverReadProxyProvider.<init>(ObserverReadProxyProvider.java:123)
>  at org.apache.hadoop.hdfs.server.namenode.ha.ObserverReadProxyProvider.<init>(ObserverReadProxyProvider.java:112)
>  ... 12 more
> {code}
> similar with HDFS-14116, we did a simple fix.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message