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

The error message is not friendly when set a path with the policy not enabled

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.0.0-beta1, 3.0.0-alpha3
    • Fix Version/s: 3.0.0-beta1
    • Component/s: hdfs
    • Target Version/s:

      Description

      First user add a policy by -addPolicies command but not enabled, then user set a path with this policy. The error message displayed as below:
      RemoteException: Policy 'XOR-2-1-128k' does not match any enabled erasure coding policies: []. The set of enabled erasure coding policies can be configured at 'dfs.namenode.ec.policies.enabled'.

      The policy 'XOR-2-1-128k' is added by user but not be enabled.The error message is not promot user to enable the policy first.I think the error message may be better as below:
      RemoteException: Policy 'XOR-2-1-128k' does not match any enabled erasure coding policies: []. The set of enabled erasure coding policies can be configured at 'dfs.namenode.ec.policies.enabled' or enable the policy by '-enablePolicy' EC command before.

        Attachments

        1. HDFS-12087.001.patch
          1 kB
          lufei

          Activity

            People

            • Assignee:
              figo lufei
              Reporter:
              figo lufei
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: