Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12035

Ozone: listKey doesn't work from ozone commandline

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7240
    • ozone
    • None
    • Reviewed

    Description

      HDFS-11782 implements listKey operation in KSM server side, but the commandline doesn't work right now,

      ./bin/hdfs oz -listKey http://ozone1.fyre.ibm.com:9864/volume-wwei-0/bucket1/
      

      gives me following output

      Command Failed : {"httpCode":400,"shortMessage":"invalidBucketName","resource":"wwei","message":"Illegal max number of keys specified, the value must be in range (0, 1024], actual : 0.","requestID":"d1a33851-6bfa-48d2-9afc-9dd7b06dfb0e","hostName":"ozone1.fyre.ibm.com"}
      

      I think we have following things missing

      1. ListKeyHandler doesn't support common listing arguments, start, length and prefix.
      2. Http request to Bucket#listBucket uses 0 as the default value, I think that's why we got "Illegal max number of keys specified" error from command line.

      Attachments

        1. HDFS-12035-HDFS-7240.001.patch
          14 kB
          Yiqun Lin
        2. HDFS-12035-HDFS-7240.002.patch
          14 kB
          Weiwei Yang

        Activity

          People

            linyiqun Yiqun Lin
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: