Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2802 Support for RW/RO snapshots in HDFS
  3. HDFS-4801

lsSnapshottableDir throws IllegalArgumentException when root is made snapshottable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Snapshot (HDFS-2802)
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      $ hadoop dfsadmin -allowSnapshot /
      Allowing snaphot on / succeeded

      $ hadoop lsSnapshottableDir
      Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path from an empty string
      at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
      at org.apache.hadoop.fs.Path.<init>(Path.java:90)
      at org.apache.hadoop.fs.Path.<init>(Path.java:45)
      at org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.getFullPath(SnapshottableDirectoryStatus.java:125)
      at org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.print(SnapshottableDirectoryStatus.java:166)
      at org.apache.hadoop.hdfs.tools.snapshot.LsSnapshottableDir.main(LsSnapshottableDir.java:55)

      Whereas,
      $ hadoop dfsadmin -disallowSnapshot /
      Disallowing snaphot on / succeeded

      $ hadoop lsSnapshottableDir

      $

        Attachments

          Activity

            People

            • Assignee:
              jingzhao Jing Zhao
              Reporter:
              rramya Ramya Sunil
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: