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

    XMLWordPrintableJSON

Details

    • 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.patch
          1 kB
          Surendra Singh Lilhore
        2. HDFS-8711-01.patch
          4 kB
          Surendra Singh Lilhore

        Issue Links

          Activity

            People

              surendralilhore Surendra Singh Lilhore
              surendralilhore Surendra Singh Lilhore
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: