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 He Chen <ai...@gmail.com> on 2011/12/21 00:05:42 UTC

build Hadoop-1.0 error

Hi everyone

I met some problems when I was building Hadoop 1.0 from Hadoop SVN
branch-1.0

1) When I compile contrib, it shows to me eclipse-plugin can not be
compiled. Then I disable the whole contrib part and I met the second
problem:

2)  java5.home and forrest.home. I send the variable -Djava5.home=[the
java5 home in my laptop] and -Dforrest.home=[forrest home]. This problem
solved. But it was pending and provide me following errors:

3)
     [taskdef] 11/12/18 17:50:30 INFO mortbay.log: Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
Trying to override old definition of task jsp-compile
       [javac] Compiling 28 source files to /Users/che/Workspaces/MyEclipse
8.6/branch-1.0-edf/build/classes
       [javac] /Users/che/Workspaces/MyEclipse
8.6/branch-1.0-edf/src/mapred/org/apache/hadoop/mapred/JobQueueJobInProgressListener.java:28:
package mapred.org.apache.hadoop.mapred does not exist
       [javac] import mapred.org.apache.hadoop.mapred.JobInProgress;
       [javac]                                       ^
       [javac] /Users/che/Workspaces/MyEclipse
8.6/branch-1.0-edf/src/mapred/org/apache/hadoop/mapred/JobConf.java:1427:
cannot find symbol
       [javac] symbol  : method currnetTimeMillis()
       [javac] location: class java.lang.System
       [javac]       long current=System.currnetTimeMillis();
       [javac]                          ^
       [javac] /Users/che/Workspaces/MyEclipse
8.6/branch-1.0-edf/src/mapred/org/apache/hadoop/mapred/JobInProgress.java:353:
cannot find symbol
       [javac] symbol  : method setJobDeadLine(long)
       [javac] location: class org.apache.hadoop.mapred.JobStatus
       [javac]     this.status.setJobDeadLine(deadline);
       [javac]                ^
       [javac] /Users/che/Workspaces/MyEclipse
8.6/branch-1.0-edf/src/mapred/org/apache/hadoop/mapred/JobInProgress.java:878:
warning: [unchecked] unchecked conversion
       [javac] found   : java.util.Map
       [javac] required: java.util.Map<java.lang.Float,java.lang.String>
       [javac]       this.heterogenety=heter;
       [javac]                         ^
       [javac] /Users/che/Workspaces/MyEclipse
8.6/branch-1.0-edf/src/mapred/org/apache/hadoop/mapred/JobQueueJobInProgressListener.java:673:
cannot find symbol
       [javac] symbol  : method getStarted()
       [javac] location: class org.apache.hadoop.mapred.JobStatus
       [javac]           if(jobQueue.get(iter).getStatus().getStarted()){
       [javac]                                            ^
       [javac] Note: Some input files use or override a deprecated API.
       [javac] Note: Recompile with -Xlint:deprecation for details.
       [javac] 4 errors
       [javac] 1 warning

BUILD FAILED

I am using MyEclipse 8.6 with Java 6 on MacOS 10.5. Any reply will be
appreciated.

Bests!

Chen