FSO operations

You can run the following commands for performing FSO operations.

  1. Creating directories inside FSO buckets:
    1. ozone fs -mkdir -p o3fs://fso-bucket.s3v.ozone1/dir1/dir2/dir3/
    2. ozone fs -mkdir -p o3fs://fso-bucket.s3v.ozone1//aa///bb//cc///
    In FSO, bucket paths will be normalized
  2. Listing FSO bucket ozone fs -ls -R o3fs://fso-bucket.s3v.ozone1/
  3. Creating some files inside FSO buckets
    1. ozone fs -touch o3fs://fso-bucket.s3v.ozone1/dir1/dir2/dir3/file1
    2. ozone fs -touch o3fs://fso-bucket.s3v.ozone1/dir1/dir2/dir3/file2
    3. ozone fs -touch o3fs://fso-bucket.s3v.ozone1/aa/bb/cc/abc_file3
  4. Listing FSO bucket ozone fs -ls -R o3fs://fso-bucket.s3v.ozone1/
  5. 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/
  6. 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
  7. Listing FSO bucket ozone fs -ls -R o3fs://fso-bucket.s3v.ozone1/