smengcl commented on issue #528: HDDS-2979. Implement ofs://: Fix getFileStatus for mkdir volume URL: https://github.com/apache/hadoop-ozone/pull/528#issuecomment-582191716 I figured this out. We simply need to handle the case in `getFileStatus` where Hadoop is asking for root(`/`). After the next commit the behavior should become: ``` bash-4.2$ ozone fs -mkdir ofs://om/vol1/ 2020-02-05 00:59:59,518 [main] INFO rpc.RpcClient: Creating Volume: vol1, with hadoop as owner. bash-4.2$ ozone fs -mkdir ofs://om/vol1/ 2020-02-05 01:00:34,016 [main] INFO rpc.RpcClient: Creating Volume: vol1, with hadoop as owner. mkdir: Volume already exists bash-4.2$ ozone fs -mkdir ofs://om/vol2/ 2020-02-05 01:00:39,262 [main] INFO rpc.RpcClient: Creating Volume: vol2, with hadoop as owner. ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
