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: [email protected]
For additional commands, e-mail: [email protected]