Details
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
- ListKeyHandler doesn't support common listing arguments, start, length and prefix.
- 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.