hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vivek Garg <hadoopstud...@gmail.com>
Subject Failing to compile hadoop-common (trunk or 0.21)
Date Tue, 14 Dec 2010 06:04:59 GMT
Hello Everyone,

I am new to Hadoop. I have been able to install it successfully. As a next
step I have been trying to build the hadoop common from eclipse but running
into some compile errors. Here is what I have done so far:

1. Cloned the git repository from git://github.com/apache/hadoop-common.git
2. I am using Eclipse 3.6 on Max OS X 10.6.5.
3. Set the ANT_HOME in Eclipse to point to the ant directory in
eclipse/plugins..
4. Disabled "Build Automatically"
5. On build.xml perform Run As -> Ant Build
6. In the targets select compile, eclipse, compile-core-test
7. Compilation fails while running the compile-core-test with the following
error (tried with both the 0.21 as well as the trunk):

init:

    [touch] Creating
/var/folders/Vq/VqSxajr2EEq7dvFr5qFV3E+++TI/-Tmp-/null813847759

   [delete] Deleting:
/var/folders/Vq/VqSxajr2EEq7dvFr5qFV3E+++TI/-Tmp-/null813847759

     [exec] src/saveVersion.sh: line 46: md5sum: command not found

     [exec] xargs: md5sum: No such file or directory

ant-eclipse-download:

      [get] Getting:
http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2

      [get] To:
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build/ant-eclipse-1.0.bin.tar.bz2

    [untar] Expanding:
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build/ant-eclipse-1.0.bin.tar.bz2
into /Users/vivekgarg/development/code/java/hadoop/hadoop-common/build

   [delete] Deleting:
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build/ant-eclipse-1.0.bin.tar.bz2

ivy-resolve-test:

ivy-retrieve-test:

record-parser:

compile-rcc-compiler:

compile-core-classes:

    [javac] Compiling 2 source files to
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build/classes

generate-test-records:

generate-avro-records:

compile-core-test:

    [mkdir] Created dir:
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build/test/core/classes

    [javac] Compiling 8 source files to
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build/test/core/classes

    [javac] Note: Some input files use or override a deprecated API.

    [javac] Note: Recompile with -Xlint:deprecation for details.

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] Compiling 171 source files to
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build/test/core/classes

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/conf/TestConfServlet.java:55:
cannot access HttpServlet

    [javac] class file for HttpServlet not found

    [javac]     ConfServlet.writeResponse(getTestConf(), sw, "json");

    [javac]                ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/fs/FileContextCreateMkdirBaseTest.java:58:
cannot access Log

    [javac] class file for Log not found

    [javac]
((Log4JLogger)FileSystem.LOG).getLogger().setLevel(Level.DEBUG);

    [javac]                               ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/fs/FileContextPermissionBase.java:59:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]
((org.apache.commons.logging.impl.Log4JLogger)FileSystem.LOG).getLogger()

    [javac]                                                               ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/fs/TestFilterFileSystem.java:34:
incompatible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.Log

    [javac]   private static final Log LOG = FileSystem.LOG;

    [javac]                                            ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/fs/TestFilterFs.java:31:
incompatible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.Log

    [javac]   private static final Log LOG = FileSystem.LOG;

    [javac]                                            ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/fs/TestLocalFileSystemPermission.java:40:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]
((org.apache.commons.logging.impl.Log4JLogger)FileSystem.LOG).getLogger()

    [javac]                                                               ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/http/TestHttpServer.java:114:
addServlet(java.lang.String,java.lang.String,java.lang.Class<? extends
HttpServlet>) in org.apache.hadoop.http.HttpServer cannot be applied to
(java.lang.String,java.lang.String,java.lang.Class<org.apache.hadoop.http.TestHttpServer.EchoServlet>)

    [javac]     server.addServlet("echo", "/echo", EchoServlet.class);

    [javac]           ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/http/TestHttpServer.java:115:
addServlet(java.lang.String,java.lang.String,java.lang.Class<? extends
HttpServlet>) in org.apache.hadoop.http.HttpServer cannot be applied to
(java.lang.String,java.lang.String,java.lang.Class<org.apache.hadoop.http.TestHttpServer.EchoMapServlet>)

    [javac]     server.addServlet("echomap", "/echomap",
EchoMapServlet.class);

    [javac]           ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/http/TestHttpServer.java:140:
cannot access Server

    [javac] class file for Server not found

    [javac]             int serverThreads =
server.webServer.getThreadPool().getThreads();

    [javac]                                                 ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/io/TestSetFile.java:146:
<T>valueOf(java.lang.Class<T>,java.lang.String) in
java.lang.Enum<org.apache.hadoop.io.SequenceFile.CompressionType> cannot be
applied to (java.lang.String)

    [javac]         writeTest(fs, data, file,
CompressionType.valueOf(compress));

    [javac]                                                  ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/io/compress/TestCodec.java:285:
cleanup(Log,java.io.Closeable...) in org.apache.hadoop.io.IOUtils cannot be
applied to (org.apache.commons.logging.Log,java.io.DataOutputStream)

    [javac]       IOUtils.cleanup(LOG, fout);

    [javac]              ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/ipc/MiniRPCBenchmark.java:244:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]     ((Log4JLogger)Server.auditLOG).getLogger().setLevel(level);

    [javac]                         ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/ipc/TestSaslRPC.java:72:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]     ((Log4JLogger) Client.LOG).getLogger().setLevel(Level.ALL);

    [javac]                          ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/ipc/TestSaslRPC.java:73:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]     ((Log4JLogger) Server.LOG).getLogger().setLevel(Level.ALL);

    [javac]                          ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/ipc/TestSaslRPC.java:74:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]     ((Log4JLogger)
SaslRpcClient.LOG).getLogger().setLevel(Level.ALL);

    [javac]                                 ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/ipc/TestSaslRPC.java:75:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]     ((Log4JLogger)
SaslRpcServer.LOG).getLogger().setLevel(Level.ALL);

    [javac]                                 ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/ipc/TestSaslRPC.java:76:
inconvertible types

    [javac] found   : Log

    [javac] required: org.apache.commons.logging.impl.Log4JLogger

    [javac]     ((Log4JLogger)
SaslInputStream.LOG).getLogger().setLevel(Level.ALL);

    [javac]                                   ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/metrics/TestMetricsServlet.java:76:
cannot access JSON.Convertible

    [javac] class file for JSON.Convertible not found

    [javac]     String s = JSON.toString(pair);

    [javac]                    ^

    [javac]
/Users/vivekgarg/development/code/java/hadoop/hadoop-common/src/test/core/org/apache/hadoop/util/TestGenericOptionsParser.java:45:
cannot access Options

    [javac] class file for Options not found

    [javac]     new GenericOptionsParser(conf, args);

    [javac]     ^

    [javac] Note: Some input files use or override a deprecated API.

    [javac] Note: Recompile with -Xlint:deprecation for details.

    [javac] 19 errors


BUILD FAILED

/Users/vivekgarg/development/code/java/hadoop/hadoop-common/build.xml:507:
Compile failed; see the compiler error output for details.


*
*

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