Not quite right. I could run hadoop example. This is problem with compiling hadoop native header file. There is an already a ticket opened on this issue.
https://issues.apache.org/jira/browse/BIGTOP-280 -Anand On Fri, Dec 9, 2011 at 11:36 AM, Sridhar Iyer <[email protected]>wrote: > It doesn't look like you have java-6-sun on your machine. Try setting your > JAVA_HOME to /usr/lib/jvm/java-6-openjdk > > - Sridhar > > On Fri, Dec 9, 2011 at 11:25 AM, Anand L Ranganathan > <[email protected]>wrote: > > > I am getting following error when I build "sudo make hadoop-apt" . > > I set the JAVA_HOME path correctly and couldn't figureout why it is > > throwing this exception. > > > > [exec] checking for JNI_GetCreatedJavaVMs in -ljvm... no > > [exec] checking for ANSI C header files... (cached) yes > > [exec] checking stdio.h usability... yes > > [exec] checking stdio.h presence... yes > > [exec] checking for stdio.h... yes > > [exec] checking stddef.h usability... yes > > [exec] checking stddef.h presence... yes > > [exec] checking for stddef.h... yes > > [exec] > > > > > /home/analog/bigtop_src/bigtop/trunk/output/hadoop/hadoop-0.20.205.0/src/native/configure: > > line 20185: test: !=: unary operator expected > > [exec] checking jni.h usability... no > > [exec] checking jni.h presence... no > > [exec] checking for jni.h... no > > [exec] configure: error: Native java headers not found. Is $JAVA_HOME > > set correctly? > > > > > > My JAVA_HOME is set to /usr/lib/jvm/java-6-sun > > > > > > I tried to find the correct java installation on my machine using > > "*apt-file > > search jni.h*" . It resulted other java paths than sun java . > > > > apt-file search jni.h > > classpath-common: /usr/include/classpath/jni.h > > gcc-snapshot: > > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.5.0/include/jni.h > > gcc-snapshot: /usr/lib/jvm/java-1.5.0-gcj-4.5-snap/include/jni.h > > gcj-4.4-jdk: /usr/lib/gcc/x86_64-linux-gnu/4.4/include/jni.h > > gcj-4.4-jdk: /usr/lib/jvm/java-1.5.0-gcj-4.4/include/jni.h > > kompozer-dev: /usr/include/kompozer/java/jni.h > > kompozer-dev: /usr/include/kompozer/jni.h > > libgcj9-dev: /usr/lib/gcc/x86_64-linux-gnu/4.3/include/jni.h > > openjdk-6-jdk: /usr/lib/jvm/java-6-openjdk/include/jni.h > > thunderbird-dev: /usr/include/thunderbird-3.0.4/stable/jni.h > > thunderbird-dev: /usr/include/thunderbird-3.0.4/unstable/jni.h > > > > Thanks > > Anand > > >
