Hadoop Common
  1. Hadoop Common
  2. HADOOP-7890

Redirect hadoop script's deprecation message to stderr

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.1
    • Component/s: scripts
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      $ hadoop dfs -ls
      DEPRECATED: Use of this script to execute hdfs command is deprecated.
      Instead use the hdfs command for it.
      ...

      If we're still letting the command run, I think we should redirect the deprecation message to stderr in case users have a script taking the output from stdout.

        Activity

        Hide
        Koji Noguchi added a comment -

        Trivial patch. No test included since it's just changing the warning(deprecation) message.

        Show
        Koji Noguchi added a comment - Trivial patch. No test included since it's just changing the warning(deprecation) message.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12506536/HADOOP-7890-v1.patch
        against trunk revision .

        +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 javadoc. The javadoc tool appears to have generated 9 warning messages.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in .

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/443//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/443//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/12506536/HADOOP-7890-v1.patch against trunk revision . +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 javadoc. The javadoc tool appears to have generated 9 warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed unit tests in . +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/443//testReport/ Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/443//console This message is automatically generated.
        Hide
        Jakob Homan added a comment -

        +1.

        Show
        Jakob Homan added a comment - +1.
        Hide
        Mahadev konar added a comment -

        Just committed this. Thanks Koji!

        Show
        Mahadev konar added a comment - Just committed this. Thanks Koji!
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk-Commit #1537 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1537/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk-Commit #1537 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1537/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-trunk-Commit #1465 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1465/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Common-trunk-Commit #1465 (See https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1465/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Commit #306 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/306/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk.

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Commit #306 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Commit/306/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk. mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-0.23-Commit #317 (See https://builds.apache.org/job/Hadoop-Common-0.23-Commit/317/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk.

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Common-0.23-Commit #317 (See https://builds.apache.org/job/Hadoop-Common-0.23-Commit/317/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk. mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk-Commit #1486 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1486/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #1486 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1486/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-0.23-Commit #328 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/328/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk.

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-0.23-Commit #328 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Commit/328/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk. mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-0.23-Build #115 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/115/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk.

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-0.23-Build #115 (See https://builds.apache.org/job/Hadoop-Hdfs-0.23-Build/115/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk. mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Hdfs-trunk #902 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/902/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #902 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/902/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-0.23-Build #136 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/136/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk.

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850
        Files :

        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-0.23-Build #136 (See https://builds.apache.org/job/Hadoop-Mapreduce-0.23-Build/136/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) - Merging r1221849 from trunk. mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221850 Files : /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk #935 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/935/)
        HADOOP-7890. Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev)

        mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849
        Files :

        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
        • /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop
        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #935 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/935/ ) HADOOP-7890 . Redirect hadoop script's deprecation message to stderr. (Koji Knoguchi via mahadev) mahadev : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221849 Files : /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/bin/hadoop

          People

          • Assignee:
            Koji Noguchi
            Reporter:
            Koji Noguchi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development