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

Fix formatting of CacheAdmin command usage help text

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: caching
    • Labels:
      None
    • Target Version/s:

      Description

      In CacheAdmin, there are two places that not completely showing the cmd usage message.

      $ hdfs cacheadmin
      Usage: bin/hdfs cacheadmin [COMMAND]
                [-addDirective -path <path> -pool <pool-name> [-force] [-replication <replication>] [-ttl <time-to-live>]]
                [-modifyDirective -id <id> [-path <path>] [-force] [-replication <replication>] [-pool <pool-name>] [-ttl <time-to-live>]]
                [-listDirectives [-stats] [-path <path>] [-pool <pool>] [-id <id>]
                [-removeDirective <id>]
                [-removeDirectives -path <path>]
                [-addPool <name> [-owner <owner>] [-group <group>] [-mode <mode>] [-limit <limit>] [-maxTtl <maxTtl>]
      

      The command -listDirectives and -addPool are not showing completely, they are both lacking a ']' in the end of line.

      In the CentralizedCacheManagement.md, there is also a similar problem. The page of CentralizedCacheManagement can also showed this, https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/CentralizedCacheManagement.html

        Attachments

        1. HDFS-10404.001.patch
          2 kB
          Yiqun Lin
        2. HDFS-10404.002.patch
          3 kB
          Yiqun Lin

          Activity

            People

            • Assignee:
              linyiqun Yiqun Lin
              Reporter:
              linyiqun Yiqun Lin
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: