Using Erasure Coding for Existing Data

You must set a supported EC policy for a directory and copy the existing data to the directory. Since Erasure Coding does not apply to existing data, we need to recreate the directory and then move the data to an erasure coding enabled directory.

Create a new directory or choose an existing directory.

  1. View the supported EC policies.
Bash
Copy
  1. Enable a supported EC policy.
Bash
Copy
  1. Set the EC policy for the directory you want to use.
Bash
Copy
  • path: This is mandatory. Specify the HDFS directory you want to apply the EC policy to.
  • policy: This is optional. The EC policy you want to use for the directory you specified. If you do not provide this parameter, the EC policy you specified in the Default Policy when Setting Erasure Coding setting from Ambari is used.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated