Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14603 Über-JIRA: HDFS RBF stabilization phase II
  3. HDFS-14713

RBF: RouterAdmin supports refreshRouterArgs command but not on display

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • Reviewed

    Description

      When the cmd commond is null,the refreshRouterArgs command is not display ,because there is one missing value in the String[] commands

      //
      if (cmd == null) {
        String[] commands =
            {"-add", "-update", "-rm", "-ls", "-getDestination",
                "-setQuota", "-clrQuota",
                "-safemode", "-nameservice", "-getDisabledNameservices",
                "-refresh"};
        StringBuilder usage = new StringBuilder();
        usage.append("Usage: hdfs dfsrouteradmin :\n");
        for (int i = 0; i < commands.length; i++) {
          usage.append(getUsage(commands[i]));
          if (i + 1 < commands.length) {
            usage.append("\n");
          }
        }
        ....
      }
      

      Attachments

        1. before.png
          88 kB
          Zhaohui Wang
        2. after.png
          114 kB
          Zhaohui Wang
        3. HDFS-14713-000.patch
          1.0 kB
          Zhaohui Wang
        4. HDFS-14713-001.patch
          2 kB
          Zhaohui Wang
        5. HDFS-14713-002.patch
          2 kB
          Zhaohui Wang
        6. HDFS-14713-003.patch
          3 kB
          Zhaohui Wang
        7. HDFS-14713-004.patch
          3 kB
          Zhaohui Wang

        Issue Links

          Activity

            People

              wangzhaohui Zhaohui Wang
              wangzhaohui Zhaohui Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: