yuangu002 opened a new pull request #2530:
URL: https://github.com/apache/ozone/pull/2530


   ## What changes were proposed in this pull request?
   
   Add a new tab to the Recon Web UI about Namespace Summary.
   
   [Other fixes]
   1. Fixed NPE bugs in `NSSummaryEndpoint` when bucket or directory is empty.
   2. Added a isKey field in DU's subpath in order for the UI to differentiate 
directories from keys.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-5377
   
   ## How was this patch tested?
   Frontend mocking: `pnpm run dev`
   Demo: https://www.youtube.com/watch?v=Q6naW-BxpuQ
   
   On docker:
   Configs:
   ```
   ozone sh volume create /vol1
   ozone sh volume create /vol2
   ozone sh bucket create /vol1/bucket11
   ozone sh bucket create /vol1/bucket12
   ozone sh bucket create /vol2/bucket21
   ozone sh bucket create /vol2/bucket22
   ozone sh key put --replication=THREE /vol1/bucket11/key1 README.md
   ozone sh key put --replication=THREE /vol1/bucket11/key2s README.md
   ozone sh key put --replication=THREE /vol1/bucket11/dir1/key3 README.md
   ozone sh key put /vol2/bucket21/key4 CONTRIBUTING.md
   ozone sh key put /vol2/bucket21/key5 CONTRIBUTING.md
   ozone sh key put /vol2/bucket22/key6 README.md
   ozone sh key put --replication=THREE /vol2/bucket22/dir22/key7 LICENSE.txt
   ozone sh key put /vol1/bucket12/dir1-1/key8 README.md
   ozone sh key put /vol1/bucket12/dir1-2/key9 CONTRIBUTING.md
   ozone sh key put --replication=THREE /vol1/bucket12/directKey README.md
   ```
   Demo: https://www.youtube.com/watch?v=J7n-2kbNu-4
   
   [Other]
   I also use a shell script to quickly run docker-up with FSO enabled
   
   ```
   cd hadoop-ozone/dist/target/ozone-*-SNAPSHOT/compose/ozone
   echo 'OZONE-SITE.XML_ozone.om.enable.filesystem.paths=true;' >> docker-config
   echo 'OZONE-SITE.XML_ozone.om.metadata.layout=PREFIX;' >> docker-config
   sed -i '' 's/-SIMPLE/-PREFIX/g' docker-compose.yaml
   sed -i '' 's/-false/-true/g' docker-compose.yaml
   docker-compose up -d --scale datanode=3
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to