You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Mukul Kumar Singh (JIRA)" <ji...@apache.org> on 2017/06/12 10:35:00 UTC

[jira] [Created] (HDFS-11968) ViewFS: StoragePolicies commands fail with HDFS federation

Mukul Kumar Singh created HDFS-11968:
----------------------------------------

             Summary: ViewFS: StoragePolicies commands fail with HDFS federation
                 Key: HDFS-11968
                 URL: https://issues.apache.org/jira/browse/HDFS-11968
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
            Reporter: Mukul Kumar Singh
            Assignee: Mukul Kumar Singh


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.

{code}
  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;
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org