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

setSpaceQuota command should print the available storage type when input storage type is wrong

    Details

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      If input storage type is wrong then currently setSpaceQuota give exception like this.

      ./hdfs dfsadmin -setSpaceQuota 10000000 -storageType COLD /testDir
       setSpaceQuota: No enum constant org.apache.hadoop.fs.StorageType.COLD
      

      It should be

      setSpaceQuota: Storage type COLD not available. Available storage type are [SSD, DISK, ARCHIVE]
      

        Attachments

        1. HDFS-8711-01.patch
          4 kB
          Surendra Singh Lilhore
        2. HDFS-8711.patch
          1 kB
          Surendra Singh Lilhore

          Issue Links

            Activity

              People

              • Assignee:
                surendrasingh Surendra Singh Lilhore
                Reporter:
                surendrasingh Surendra Singh Lilhore
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: