Hadoop Common
  1. Hadoop Common
  2. HADOOP-7398

create a mechanism to suppress the HADOOP_HOME deprecated warning

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.204.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Create a new mechanism to suppress the warning about HADOOP_HOME deprecation.

      I'll create a HADOOP_HOME_WARN_SUPPRESS environment variable that suppresses the warning.

      1. warn-204.patch
        0.4 kB
        Owen O'Malley
      2. warn.patch
        0.5 kB
        Owen O'Malley
      3. warn.patch
        0.4 kB
        Owen O'Malley

        Issue Links

          Activity

          Owen O'Malley created issue -
          Hide
          Owen O'Malley added a comment -

          setting HADOOP_HOME_WARN_SUPPRESS to anything suppresses the warning.

          Show
          Owen O'Malley added a comment - setting HADOOP_HOME_WARN_SUPPRESS to anything suppresses the warning.
          Owen O'Malley made changes -
          Field Original Value New Value
          Attachment warn.patch [ 12482735 ]
          Hide
          Luke Lu added a comment -

          +1. lgtm.

          Show
          Luke Lu added a comment - +1. lgtm.
          Hide
          Rajiv Chittajallu added a comment -

          Warning should go to stderr. If this env is not used outside of bin/hadoop, unset it.

          Show
          Rajiv Chittajallu added a comment - Warning should go to stderr. If this env is not used outside of bin/hadoop, unset it.
          Owen O'Malley made changes -
          Attachment warn.patch [ 12482851 ]
          Owen O'Malley made changes -
          Comment [ This sends the warning to stderr. ]
          Owen O'Malley made changes -
          Attachment warn.patch [ 12482851 ]
          Hide
          Owen O'Malley added a comment -

          The warn patch for 20-security adds the suppression and redirects it to stderr.

          The 204/205 patch removes the warning.

          Show
          Owen O'Malley added a comment - The warn patch for 20-security adds the suppression and redirects it to stderr. The 204/205 patch removes the warning.
          Owen O'Malley made changes -
          Attachment warn.patch [ 12482853 ]
          Attachment warn-204.patch [ 12482854 ]
          Hide
          Luke Lu added a comment -

          +1, the new patches lgtm.

          Show
          Luke Lu added a comment - +1, the new patches lgtm.
          Hide
          Owen O'Malley added a comment -

          I just committed this.

          Show
          Owen O'Malley added a comment - I just committed this.
          Owen O'Malley made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Fix Version/s 0.20.204.0 [ 12316317 ]
          Fix Version/s 0.20.205.0 [ 12316390 ]
          Resolution Fixed [ 1 ]
          Owen O'Malley made changes -
          Fix Version/s 0.20.205.0 [ 12316390 ]
          Hide
          Owen O'Malley added a comment -

          Hadoop 0.20.204.0 was released today.

          Show
          Owen O'Malley added a comment - Hadoop 0.20.204.0 was released today.
          Owen O'Malley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          Jignesh added a comment -

          Today I have tried with 0.20.205.0 and I see following message

          Warning: $HADOOP_HOME is deprecated. 2011-10-12 15:32:56.296 java[19662:1c03].

          The message appear in hadoop-hadoop-user-datanode-Jignesh-MacBookPro.local.out

          I am also seeing another error which is not relevant here but just for the note I am mentioning it here.

          Unable to load realm info from SCDynamicStore

          Show
          Jignesh added a comment - Today I have tried with 0.20.205.0 and I see following message Warning: $HADOOP_HOME is deprecated. 2011-10-12 15:32:56.296 java [19662:1c03] . The message appear in hadoop-hadoop-user-datanode-Jignesh-MacBookPro.local.out I am also seeing another error which is not relevant here but just for the note I am mentioning it here. Unable to load realm info from SCDynamicStore
          Hide
          Owen O'Malley added a comment -

          Did you set HADOOP_HOME_WARN_SUPPRESS in your environment?

          Show
          Owen O'Malley added a comment - Did you set HADOOP_HOME_WARN_SUPPRESS in your environment?
          Hide
          Koji Noguchi added a comment -

          Owen, it's probably too late on asking this but we could have put the warning check AFTER

            . "${HADOOP_CONF_DIR}/hadoop-env.sh"
          

          so that people can set HADOOP_HOME_WARN_SUPPRESS inside the config?

          Show
          Koji Noguchi added a comment - Owen, it's probably too late on asking this but we could have put the warning check AFTER . "${HADOOP_CONF_DIR}/hadoop-env.sh" so that people can set HADOOP_HOME_WARN_SUPPRESS inside the config?
          Suresh Srinivas made changes -
          Link This issue relates to HADOOP-7816 [ HADOOP-7816 ]

            People

            • Assignee:
              Owen O'Malley
              Reporter:
              Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development