hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Celina d' Ávila Samogin <celina...@yahoo.com>
Subject 0.22 hadoop project built with errors
Date Sun, 07 Apr 2013 22:09:37 GMT


Hi, I am posting for the first time. Please let me know if this needs to go to
any other mailing list. Sorry my english.


I am trying to build Hadoop from source code, and I am able to successfully
build until the Hadoop-HDFS-Project.

I did a modification in LocatedBlock class (Hadoop-Hdfs-Project version 0.22) and after this,
the Hadoop-MapReduce-Project built finished with errors. I've made many modifications in MapReduce
source code classes like creating new classes.


All projects were built by tools:

ant binary

The Makefile is downloaded from
https://issues.apache.org/jira/browse/HADOOP-6342 and https://issues.apache.org/jira/browse/HADOOP-6846
I've used these scripts with few modifications to make builts.


#  This Makefile assists with multi-project compilation, building a single
#  "image" out of the hadoop-common, mapred, and hdfs projects.

#     combined-binary    Runs 'ant binary' in all projects and merges their
#                        results


Adding build results below.
compile:

     [echo] contrib: raid
    [javac] Compiling 4 source files to /mnt/hadoop-mapreduce/build/contrib/raid/classes
    [javac] /mnt/hadoop-mapreduce/src/contrib/raid/src/java/org/apache/hadoop/hdfs/RaidDFSUtil.java:75:
cannot find symbol
    [javac] symbol  : method getReadyForBlockMissingFlag()
    [javac] location: class org.apache.hadoop.hdfs.protocol.LocatedBlock
    [javac]       boolean[] fl = b.getReadyForBlockMissingFlag();
    [javac]                       ^
    [javac] /mnt/hadoop-mapreduce/src/contrib/raid/src/java/org/apache/hadoop/hdfs/RaidDFSUtil.java:78:
cannot find symbol
    [javac] symbol  : method isReadyForBlockMissing(int)
    [javac] location: class org.apache.hadoop.hdfs.protocol.LocatedBlock
    [javac]           if (b.isReadyForBlockMissing(i)) {
    [javac]                ^
    [javac] /mnt/hadoop-mapreduce/src/contrib/raid/src/java/org/apache/hadoop/raid/ParityBlockDistributionMonitor.java:305:
cannot find symbol
    [javac] symbol  : method setReadyForBlockMissing(int,boolean)
    [javac] location: class org.apache.hadoop.hdfs.protocol.LocatedBlock
    [javac]                pb.setReadyForBlockMissing(i,false);
    [javac]                  ^
    [javac] Note: /mnt/hadoop-mapreduce/src/contrib/raid/src/java/org/apache/hadoop/raid/RaidNode.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 errors

BUILD FAILED

Could anyone know if these errors can be related to mapreduce built not be made with local
hdfs built ?

In the hdfs built directory, there is a binary file of LocatedBlock class with my modifications.


find /mnt/hadoop-hdfs/build/classes/ -name LocatedBlock.class
/mnt/hadoop-hdfs/build/classes/org/apache/hadoop/hdfs/protocol/LocatedBlock.class



[]s

 
Celina d' Ávila Samogin
celinasam@yahoo.com
https://sites.google.com/site/newerasurecodinginhadoop/
Mime
View raw message