Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16518

Updating incompatible issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.5, 3.1.2
    • None
    • io

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lingchao xia0c
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: