Example #1
0
 /**
  * Set the source path (directory/file) to the specified storage policy.
  *
  * @param path The source path (directory/file).
  * @param policyName The name of the storage policy: 'HOT', 'COLD', etc. See see hadoop 2.6+
  *     org.apache.hadoop.hdfs.protocol.HdfsConstants for possible list e.g 'COLD', 'WARM', 'HOT',
  *     'ONE_SSD', 'ALL_SSD', 'LAZY_PERSIST'.
  */
 public void setStoragePolicy(Path path, String policyName) {
   FSUtils.setStoragePolicy(this.fs, path, policyName);
 }