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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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
          wangzhaohui
        2. after.png
          114 kB
          wangzhaohui
        3. HDFS-14713-000.patch
          1.0 kB
          wangzhaohui
        4. HDFS-14713-001.patch
          2 kB
          wangzhaohui
        5. HDFS-14713-002.patch
          2 kB
          wangzhaohui
        6. HDFS-14713-003.patch
          3 kB
          wangzhaohui
        7. HDFS-14713-004.patch
          3 kB
          wangzhaohui

          Issue Links

            Activity

              People

              • Assignee:
                wangzhaohui wangzhaohui
                Reporter:
                wangzhaohui wangzhaohui
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: