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.4 kB
        Owen O'Malley
      3. warn.patch
        0.5 kB
        Owen O'Malley

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          22h 13m 1 Owen O'Malley 16/Jun/11 21:51
          Resolved Resolved Closed Closed
          78d 1h 23m 1 Owen O'Malley 02/Sep/11 23:15
          Suresh Srinivas made changes -
          Link This issue relates to HADOOP-7816 [ HADOOP-7816 ]
          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?
          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
          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
          Owen O'Malley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          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 -
          Fix Version/s 0.20.205.0 [ 12316390 ]
          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 ]
          Hide
          Owen O'Malley added a comment -

          I just committed this.

          Show
          Owen O'Malley added a comment - I just committed this.
          Hide
          Luke Lu added a comment -

          +1, the new patches lgtm.

          Show
          Luke Lu added a comment - +1, the new patches lgtm.
          Owen O'Malley made changes -
          Attachment warn.patch [ 12482853 ]
          Attachment warn-204.patch [ 12482854 ]
          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 [ 12482851 ]
          Owen O'Malley made changes -
          Comment [ This sends the warning to stderr. ]
          Owen O'Malley made changes -
          Attachment warn.patch [ 12482851 ]
          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.
          Hide
          Luke Lu added a comment -

          +1. lgtm.

          Show
          Luke Lu added a comment - +1. lgtm.
          Owen O'Malley made changes -
          Field Original Value New Value
          Attachment warn.patch [ 12482735 ]
          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 created issue -

            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