Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.8.5, 3.1.2
-
None
Description
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.
@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);
}
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.