build hadoop-2.4.1 by mvn eclipse:eclipse fail in mac os x 10.9

2014-10-20 Thread Li Li
it says can't find tools at Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/Classes/classes.jar My JAVA_HOME is /Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/home. I can find tools.jar in $JAVA_HOME/lib directory. Why it try to find tools.jar in Library/Java/JavaVirtualM

Re: build hadoop-2.4.1 by mvn eclipse:eclipse fail in mac os x 10.9

2014-10-20 Thread Mahesh Kumar Vasanthu Somashekar
Hi Li Li, This is happening because Hadoop expects classes.jar to be in a location which no longer exists on Java 7 on Mac. Below steps will fix it, $ mkdir -p /Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home/Classes/ $ cd !$ $ ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_65.j

Re: build hadoop-2.4.1 by mvn eclipse:eclipse fail in mac os x 10.9

2014-10-20 Thread Ray Chiang
FYI, for these sort of issues, I highly recommend reading the BUILDING.txt that comes in the Hadoop source code. Also, if you're going to use an IDE with Hadoop, I've found IntelliJ works well for me. The instructions here