ANKUR GOEL wrote:
Hi,
I have setup Hadoop in Eclipse 3.3 on my RedHat Linux, Kernel
2.6.9-42.ELsmp
as per the instructions given on the Wiki page
http://wiki.apache.org/lucene-hadoop/EclipseEnvironment.
I have included "contrib" directory in the source path and have
ensured that all libraries are included
as per the instructions.
I am facing compilation issues with "hadoop/src/test" directory.
Specifically files in
hadoop/src/test/org/apache/hadoop/record
don't seem to compile due to a missing class - RecRecord1.
Also after adding a new Ant builder and setting up targets as
mentioned on the instructions page, the build seem
to fail after 47 min due to junit test failure. Here is a snapshot
from the logs
*test:
[echo] contrib: hbase
[delete] Deleting directory
/ankur-workspace/Eclipse/workspace/Hadoop/build/contrib/hbase/test/logs
[mkdir] Created dir:
/ankur-workspace/Eclipse/workspace/Hadoop/build/contrib/hbase/test/logs
[junit] Running org.apache.hadoop.hbase.TestBatchUpdate
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed:
74.358 sec
...
[junit] Test org.apache.hadoop.hbase.mapred.TestTableMapReduce
FAILED
*
Can anyone help me out in resolving these issues ?
Also, does it take so long to run all the unit tests and build hadoop ?
Thanks
-Ankur
I have attached a tar file of the .project, .classpath and
.externalToolBuilder
Copy these to the project root directory and change the
"PROJECT_NAMExxx" (I might have the actual spelling wrong)
with your project name and all should be fine.
For your particular problem just copying the .classpass from the tar may
also be good enough.
IF you wish to change things manually in your project you need to
exclude the following from the
source
from src/test exclude:
org/apache/hadoop/record
from src/java exclude:
or/apache/hadoop/record/ant
I routinely create projects using the tar file and replacing the
PROJECT_NAME.
good luck.
sanjay