Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12857

StoragePolicyAdmin should support schema based path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0, 3.0.4
    • namenode
    • None

    Description

      When we execute storagepolicy admin command with full schema path, then it will throw this exception

      ./hdfs storagepolicies -getstoragepolicy -path hdfs://localhost:39133/user1/bar
      java.lang.IllegalArgumentException: Wrong FS: hdfs://localhost:39133/user1/bar, expected: viewfs://cluster/
      

      This is because path schema is not matching with fs.defaultFS. fs.defaultFS configured with viewFs and in file path hdfs is used. This is broken because of HDFS-11968

      Attachments

        1. HDFS-12857.001.patch
          4 kB
          Surendra Singh Lilhore

        Issue Links

          Activity

            People

              surendralilhore Surendra Singh Lilhore
              surendralilhore Surendra Singh Lilhore
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: