hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Watt <sw...@us.ibm.com>
Subject Re: hadoop ANT build ERROR HELP!!!!
Date Tue, 03 Aug 2010 16:44:04 GMT
It seems quite self-explanatory " Annotation processing got disabled, 
since it requires a 1.6 compliant JVM"

Hadoop 0.20.x and above needs Java 1.6. You're likely running with Java 
1.5

Regards
Steve Watt 



From:
Saikat Kanjilal <sxk1969@hotmail.com>
To:
"common-dev@hadoop.apache.org" <common-dev@hadoop.apache.org>
Date:
08/03/2010 07:59 AM
Subject:
Re: hadoop ANT build ERROR HELP!!!!



Hi Ahmad,
Can you share some more details on what your environment looks like (jdk 
version, OS , version of ant etc)

Thanks

Sent from my iPhone

On Aug 3, 2010, at 4:27 AM, Ahmad Shahzad <ashahzad4@gmail.com> wrote:

> Hi All,
>          Can anyone guide me regarding this error, i get this error when 
i
> compile the hadoop with ant. one more thing, i just un tar the hadoop
> folder, so, i have changed nothing no code in hadoop directory.
> 
> When 'ant' it says:
> 
> 
> Compiling 5 source files to /usr/local/hadoop/build/
> classes
>    [javac] Annotation processing got disabled, since it requires a 1.6
> compliant JVM
> 
> gives me a long list of warning and a few errors like:
> 
> 1. ERROR in
> 
/usr/local/hadoop/src/core/org/apache/hadoop/fs/permission/AccessControlException.java
> (at line 59)
>    [javac]     super(cause);
>    [javac]     ^^^^^^^^^^^^^
>    [javac] The constructor IOException(Throwable) is undefined
>    [javac] ----------
>    [javac] ----------
>    [javac] 2. ERROR in
> /usr/local/hadoop/src/core/org/apache/hadoop/http/HttpServer.java
>    [javac]  (at line 509)
>    [javac]     throw new IOException("Problem starting http server", e);
>    [javac]           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    [javac] The constructor IOException(String, Exception) is undefined
>    [javac] ----------
>    [javac] ----------
>    [javac] 3. ERROR in
> /usr/local/hadoop/src/core/org/apache/hadoop/ipc/Server.java (at line 
954)
>    [javac]     Subject.doAs(call.connection.user,
>    [javac]                            new PrivilegedExcepti
>    [javac] onAction<Writable>() {
>    [javac]                               @Override
>    [javac]                               public Writable run() throws
> Exception {
>    [javac]                                 // make the call
>    [javac]
>    [javac]                return call(call.connection.protocol,
>    [javac]                                             call.param,
> call.timestamp);
>    [javac]
>    [javac]                               }
>    [javac]                            }
>    [javac]
>    [javac]                );
>    [javac]
> 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    [javac]
> 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    [javac]
> 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    [javac] Type mismatch: cannot convert from Object to Writable
>    [javac] ----------
>    [javac] ----------
>    [javac] 4. ERROR in
> /usr/local/hadoop/src/core/org/apache/hadoop/net/SocksSocketFactory.java 
(at
> line 62)
>    [javac]     return new Socket(proxy);
>    [javac]            ^^^^^^^^^^^^^^^^^
>    [javac] The constructor Socket(Proxy) is undefined
>    [javac] ----------
>    [javac] ----------
>    [javac] 5. ERROR in
> 
/usr/local/hadoop/src/core/org/apache/hadoop/security/authorize/ConfiguredPolicy.java
> (at line 44)
>    [javac]     public class ConfiguredPolicy extends Policy implements
> Configurable {
>    [javac]                  ^^^^^^^^^^^^^^^^
>    [javac] The type ConfiguredPolicy must implement the inherited 
abstract
> method Policy.getPermissions(CodeSource)
>    [javac] ----------
>    [javac] ----------
>    [javac] 6. WARNING in
> 
/usr/local/hadoop/src/core/org/apache/hadoop/security/AccessControlException.java
>    [javac]  (at line 24)
>    [javac]     extends
> org.apache.hadoop.fs.permission.AccessControlException {
>    [javac]
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    [javac] The type AccessControlException is deprecated
>    [javac] ----------
>    [javac] 7. WARNING in
> 
/usr/local/hadoop/src/core/org/apache/hadoop/security/AccessControlException.java
> (at line 34)
>    [javac]     super("Permission denied.");
>    [javac]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    [javac] The constructor AccessControlException(String) is deprecated
>    [javac] ----------
> 
> ANY IDEA!!!!!
> 
> 
> Ahmad



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message