Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5360

Improvement of usage message of renameSnapshot and deleteSnapshot

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.3.0
    • snapshots
    • None

    Description

      When the argument of "hdfs dfs -createSnapshot" comamnd is inappropriate, it is displayed as follows.

      [hadoop@trunk ~]$ hdfs dfs -createSnapshot
      -createSnapshot: <snapshotDir> is missing.
      Usage: hadoop fs [generic options] -createSnapshot <snapshotDir> [<snapshotName>]
      

      On the other hands, the commands of "-renameSnapshot" and "-deleteSnapshot" is displayed as follows. And there are not kind for the user.

      [hadoop@trunk ~]$ hdfs dfs -renameSnapshot
      renameSnapshot: args number not 3: 0
      
      [hadoop@trunk ~]$ hdfs dfs -deleteSnapshot
      deleteSnapshot: args number not 2: 0
      

      It changes "-renameSnapshot" and "-deleteSnapshot" to output the message which is similar to "-createSnapshot".

      Attachments

        1. HDFS-5360.patch
          7 kB
          Shinichi Yamashita
        2. HDFS-5360.patch
          6 kB
          Shinichi Yamashita

        Activity

          People

            sinchii Shinichi Yamashita
            sinchii Shinichi Yamashita
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: