FSO operations
You can run the following commands for performing FSO operations.
-
Creating directories inside FSO buckets:
- ozone fs -mkdir -p o3fs://fso-bucket.s3v.ozone1/dir1/dir2/dir3/
- ozone fs -mkdir -p o3fs://fso-bucket.s3v.ozone1//aa///bb//cc///
In FSO, bucket paths will be normalized - Listing FSO bucket ozone fs -ls -R o3fs://fso-bucket.s3v.ozone1/
-
Creating some files inside FSO buckets
- ozone fs -touch o3fs://fso-bucket.s3v.ozone1/dir1/dir2/dir3/file1
- ozone fs -touch o3fs://fso-bucket.s3v.ozone1/dir1/dir2/dir3/file2
- ozone fs -touch o3fs://fso-bucket.s3v.ozone1/aa/bb/cc/abc_file3
- Listing FSO bucket ozone fs -ls -R o3fs://fso-bucket.s3v.ozone1/
- Move Command on a file, which internally does a renaming operation ozone fs -mv o3fs://fso-bucket.s3v.ozone1/dir1/dir2/dir3/file2 o3fs://fso-bucket.s3v.ozone1/dir1/dir2/
- Move Command on a directory, which internally does a renaming operation ozone fs -mv o3fs://fso-bucket.s3v.ozone1/aa/ o3fs://fso-bucket.s3v.ozone1/new_aa
- Listing FSO bucket ozone fs -ls -R o3fs://fso-bucket.s3v.ozone1/