You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Bryan Pendleton (JIRA)" <ji...@apache.org> on 2006/05/10 01:54:04 UTC

[jira] Created: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Patch to HADOOP-96 uses long deprecated call
--------------------------------------------

         Key: HADOOP-207
         URL: http://issues.apache.org/jira/browse/HADOOP-207
     Project: Hadoop
        Type: Bug

    Reporter: Bryan Pendleton
    Priority: Critical


System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-207?page=comments#action_12383251 ] 

Doug Cutting commented on HADOOP-207:
-------------------------------------

Is that because I mistakenly compiled 0.2.0 with JDK 1.5, or is there something more going on?  How does it fail?  What's the minimal patch?  (I'll start trying this now and will soon find out, since I'm about to start building & testing release 0.2.1 using JDK 1.4, but any hints are welcome.)

> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Versions: 0.2
>     Reporter: Bryan Pendleton
>     Assignee: Hairong Kuang
>     Priority: Critical
>      Fix For: 0.2.1
>  Attachments: logging.patch, logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Hairong Kuang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-207?page=all ]

Hairong Kuang updated HADOOP-207:
---------------------------------

    Attachment: logging.patch

This patch allows hadoop logging works with java1.4. It also makes the .log name consistent with .log name.

> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Reporter: Bryan Pendleton
>     Priority: Critical
>  Attachments: logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Hairong Kuang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-207?page=all ]

Hairong Kuang updated HADOOP-207:
---------------------------------

    Attachment: logging.patch

> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Reporter: Bryan Pendleton
>     Priority: Critical
>  Attachments: logging.patch, logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Sameer Paranjpye (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-207?page=all ]

Sameer Paranjpye updated HADOOP-207:
------------------------------------

    Fix Version: 0.2.1
        Version: 0.2
      Assign To: Hairong Kuang

> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Versions: 0.2
>     Reporter: Bryan Pendleton
>     Assignee: Hairong Kuang
>     Priority: Critical
>      Fix For: 0.2.1
>  Attachments: logging.patch, logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-207?page=comments#action_12383242 ] 

Owen O'Malley commented on HADOOP-207:
--------------------------------------

If you run Hadoop 0.2.0 on jdk 1.4.2 it gets an exception that stops the servers at start up.

> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Versions: 0.2
>     Reporter: Bryan Pendleton
>     Assignee: Hairong Kuang
>     Priority: Critical
>      Fix For: 0.2.1
>  Attachments: logging.patch, logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-207?page=comments#action_12383267 ] 

Owen O'Malley commented on HADOOP-207:
--------------------------------------

Assuming you have the trivial program:

public class test {
  public static void main(String[] args) {
    System.out.println("Home is " + System.getenv("HOME"));
  }
}

Compiling under 1.5 produces no warnings.
Compiling under 1.4.2 produces a depreciated warning for getenv.

Running either the 1.5 or 1.4.2 class file under jvm 1.5 works fine.
Running the 1.4 binary under the jvm 1.4.2 throws:
Exception in thread "main" java.lang.Error: getenv no longer supported, use properties and -D instead: HOME
        at java.lang.System.getenv(System.java:691)
        at test.main(test.java:3)


> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Versions: 0.2
>     Reporter: Bryan Pendleton
>     Assignee: Hairong Kuang
>     Priority: Critical
>      Fix For: 0.2.1
>  Attachments: logging.patch, logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-207?page=all ]
     
Doug Cutting resolved HADOOP-207:
---------------------------------

    Resolution: Fixed

I just committed this.  The patch did not correctly handle paths with spaces on Win32.  I fixed that by converting them to space-free DOS paths.  Thanks, Hairong.

> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Versions: 0.2
>     Reporter: Bryan Pendleton
>     Assignee: Hairong Kuang
>     Priority: Critical
>      Fix For: 0.2.1
>  Attachments: logging.patch, logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HADOOP-207) Patch to HADOOP-96 uses long deprecated call

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-207?page=comments#action_12383240 ] 

Doug Cutting commented on HADOOP-207:
-------------------------------------

The 1.4 compatibility issue could be worthy of fixing in 0.2.1 (which I can't release until svn writes are re-enabled... checking... and it looks like they just were!).  What exactly is the problem on your mixed cluster?  Should I try to squeeze this into the 0.2.1 release?

I'm concerned about the other changes on Win32.  Have you tested that the new Java command-line parameters work correctly if they contain spaces?  In particular, we should test that these work correctly when either the username or the log directory path contain spaces.

Thanks!

> Patch to HADOOP-96 uses long deprecated call
> --------------------------------------------
>
>          Key: HADOOP-207
>          URL: http://issues.apache.org/jira/browse/HADOOP-207
>      Project: Hadoop
>         Type: Bug

>     Versions: 0.2
>     Reporter: Bryan Pendleton
>     Assignee: Hairong Kuang
>     Priority: Critical
>      Fix For: 0.2.1
>  Attachments: logging.patch, logging.patch
>
> System.getenv() was deprecated in Java 1.4. My mixed Java 1.4/Java 1.5 cluster won't start up with this code in place. Should probably change the scripts to pass the necessary environment variables in using -D or explicit arguments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira