Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6517 Snapshot support for Ozone
  3. HDDS-7375

[Snapshot] Implement `ozone fs` command for creating snapshot

    XMLWordPrintableJSON

Details

    Description

      Snapshot commands under 'ozone fs' package do not work 

      • -createSnapshot <snapshotDir> [<snapshotName>]
      • -deleteSnapshot <snapshotDir> <snapshotName>
      • -renameSnapshot <snapshotDir> <oldName> <newName>

      Error :

      bash-4.2$ ozone fs -createSnapshot o3fs://buck1.vol1 snap1
      -createSnapshot: Fatal internal error
      java.lang.UnsupportedOperationException: OzoneFileSystem doesn't support createSnapshot
          at org.apache.hadoop.fs.FileSystem.createSnapshot(FileSystem.java:2961)
          at org.apache.hadoop.fs.shell.SnapshotCommands$CreateSnapshot.processArguments(SnapshotCommands.java:87)
          at org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:121)
          at org.apache.hadoop.fs.shell.Command.run(Command.java:177)
          at org.apache.hadoop.fs.FsShell.run(FsShell.java:327)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
          at org.apache.hadoop.fs.ozone.OzoneFsShell.main(OzoneFsShell.java:83) 

      Attachments

        Issue Links

          Activity

            People

              hemantk Hemant Kumar
              jyosin Jyotirmoy Sinha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: