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

Improvement of usage message of renameSnapshot and deleteSnapshot

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.3.0
    • Component/s: snapshots
    • Labels:
      None
    • Target Version/s:

      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
          6 kB
          Shinichi Yamashita
        2. HDFS-5360.patch
          7 kB
          Shinichi Yamashita

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: