Hadoop Common
  1. Hadoop Common
  2. HADOOP-7395

The infomation returned by the wrong usage of the command "job -counter<job-id> <group-name> <counter-name> "is not appropriate

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: None
    • Labels:
      None

      Description

      When use the command "job -counter<job-id> <group-name> <counter-name> " with wrong group-name or wrong counter-name(with correct job-id), the result is always 0. It is better to show the user the detail, like "illegal group-name", "illegal counter-name", etc.

      1. Hadoop_7395
        2 kB
        XieXianshan

        Activity

        Hide
        XieXianshan added a comment -

        Fix this issue.
        The error message is as the following after the patch is done:
        [Could not find group FileSystemCounters_err] <--incorrect group name
        or
        [Could not find counter FILE_BYTES_READ_err in the group FileSystemCounters] <--incorrect counter name

        Show
        XieXianshan added a comment - Fix this issue. The error message is as the following after the patch is done: [Could not find group FileSystemCounters_err] <--incorrect group name or [Could not find counter FILE_BYTES_READ_err in the group FileSystemCounters] <--incorrect counter name
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12483256/Hadoop_7395
        against trunk revision 1137724.

        +1 @author. The patch does not contain any @author tags.

        -1 tests included. The patch doesn't appear to include any new or modified tests.
        Please justify why no new tests are needed for this patch.
        Also please list what manual steps were performed to verify this patch.

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/660//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12483256/Hadoop_7395 against trunk revision 1137724. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 patch. The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/660//console This message is automatically generated.
        Hide
        XieXianshan added a comment -

        -1
        This issue should be created in project Map/Reduce.

        Show
        XieXianshan added a comment - -1 This issue should be created in project Map/Reduce.

          People

          • Assignee:
            Unassigned
            Reporter:
            Yan Jinshuang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development