Multi Protocol Access operations using AWS Client
You can run the following commands to run multi protocol access operations using the AWS client.
-
Writing a new file to FSO bucket
- aws s3 cp --endpoint-url http://0.0.0.0:9878 ozone.txt s3://fso-bucket/dir1/dir2/dir3/awsfile1
- aws s3 cp --endpoint-url http://0.0.0.0:9878 ozone.txt s3://fso-bucket/dir1/dir2/dir3/awsfile2
-
Reading from Ozone Bucket
- aws s3api --endpoint http://0.0.0.0:9878 get-object --bucket fso-bucket --key /dir1/dir2/dir3/awsfile1 ./ozone_doc
- cat ./ozone_doc
- Listing Bucket Objects aws s3api --endpoint-url http://0.0.0.0:9878 list-objects --bucket fso-bucket
- Deleting a file aws s3 rm --endpoint-url http://0.0.0.0:9878 s3://fso-bucket/dir1/dir2/dir3/awsfile1
-
Following operations using Ozone FS commands
- Listing directory ozone fs -ls -R ofs://ozone1/s3v/fso-bucket/
- Displaying the content of file ozone fs -cat ofs://ozone1/s3v/fso-bucket/dir1/dir2/dir3/awsfile2
-
Following operations using Ozone Shell commands
- Listing Keys ozone sh key list /s3v/fso-bucket/
-
Following operations using Ozone FS commands
- Deleting a file ozone fs -rm -skipTrash ofs://ozone1/s3v/fso-bucket/dir1/dir2/dir3/awsfile2
- Deleting a directory ozone fs -rm -R -skipTrash ofs://ozone1/s3v/fso-bucket/dir1/
- Listing directories (dir1 should not exist) ozone fs -ls -R ofs://ozone1/s3v/fso-bucket/