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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.0.0-beta1, 3.0.0-alpha3
    • 3.0.0-beta1
    • hdfs

    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

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

            Dates

              Created:
              Updated:
              Resolved: