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

ViewFS: StoragePolicies commands fail with HDFS federation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1
    • 3.1.0, 3.0.3
    • hdfs
    • None
    • Reviewed

    Description

      hdfs storagepolicies command fails with HDFS federation.

      For storage policies commands, a given user path should be resolved to a HDFS path and
      storage policy command should be applied onto the resolved HDFS path.

        static DistributedFileSystem getDFS(Configuration conf)
            throws IOException {
          FileSystem fs = FileSystem.get(conf);
          if (!(fs instanceof DistributedFileSystem)) {
            throw new IllegalArgumentException("FileSystem " + fs.getUri() +
                " is not an HDFS file system");
          }
          return (DistributedFileSystem)fs;
        }
      

      Attachments

        1. HDFS-11968.011.patch
          13 kB
          Mukul Kumar Singh
        2. HDFS-11968.010.patch
          13 kB
          Mukul Kumar Singh
        3. HDFS-11968.009.patch
          13 kB
          Mukul Kumar Singh
        4. HDFS-11968.008.patch
          13 kB
          Mukul Kumar Singh
        5. HDFS-11968.007.patch
          31 kB
          Mukul Kumar Singh
        6. HDFS-11968.006.patch
          32 kB
          Mukul Kumar Singh
        7. HDFS-11968.005.patch
          16 kB
          Mukul Kumar Singh
        8. HDFS-11968.004.patch
          12 kB
          Mukul Kumar Singh
        9. HDFS-11968.003.patch
          11 kB
          Mukul Kumar Singh
        10. HDFS-11968.002.patch
          11 kB
          Mukul Kumar Singh
        11. HDFS-11968.001.patch
          11 kB
          Mukul Kumar Singh

        Activity

          People

            msingh Mukul Kumar Singh
            msingh Mukul Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: