You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "xia0c (JIRA)" <ji...@apache.org> on 2019/08/16 22:15:00 UTC
[jira] [Created] (HADOOP-16518) Updating incompatible issue
xia0c created HADOOP-16518:
------------------------------
Summary: Updating incompatible issue
Key: HADOOP-16518
URL: https://issues.apache.org/jira/browse/HADOOP-16518
Project: Hadoop Common
Issue Type: Bug
Components: io
Affects Versions: 3.1.2, 2.8.5
Reporter: xia0c
Hi,
The following code snippets throw an incompatible issue when I try to rolling update Hadoop Common from 2.7.7 to 3.X. The Hadoop-hdfs version is 2.7.1.
{code:java}
@Test
public void Test(){
RetryPolicy retryPolicy =
RetryUtils.getDefaultRetryPolicy(
conf,
DFSConfigKeys.DFS_HTTP_CLIENT_RETRY_POLICY_ENABLED_KEY,
DFSConfigKeys.DFS_HTTP_CLIENT_RETRY_POLICY_ENABLED_DEFAULT,
DFSConfigKeys.DFS_HTTP_CLIENT_RETRY_POLICY_SPEC_KEY,
DFSConfigKeys.DFS_HTTP_CLIENT_RETRY_POLICY_SPEC_DEFAULT,
SafeModeException.class);
}
{code}
It throws an error: incompatible types: java.lang.Class<org.apache.hadoop.hdfs.server.namenode.SafeModeException> cannot be converted to java.lang.String
Thanks a lot.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org