PowerGraph: A problem when I run make under release/toolkits/graph_analytics

User 872 | 11/28/2014, 10:07:01 AM


The information is:

In file included from /home/lyuwei/graphlab/deps/hadoop/src/hadoop/src/c++/libhdfs/hdfs.c:19:0: /home/lyuwei/graphlab/deps/hadoop/src/hadoop/src/c++/libhdfs/hdfs.h:33:17: fatal error: jni.h: No such file or directory #include <jni.h> ^ compilation terminated. make[3]: * [hdfs.lo] Error 1 make[2]: [../deps/hadoop/src/hadoop-stamp/hadoop-build] Error 2 make[1]: ** [CMakeFiles/hadoop.dir/all] Error 2 make: *** [all] Error 2

It is the first time I meet this problem. Would someone tell me the solution? Thank you!

Best, Lyuwei


User 6 | 11/28/2014, 11:16:20 AM

Hi, We strongly recommend switching to Graphlab Create as PowerGraph will be deprecated soon.

Regarding your specific PowerGraph question, If you are not planning to use HDFS, you can configure with "./configure --no_jvm" and recompile. This will disable this error.

If you are planning to use HDFS, jni.h is provided with Java you may need to install Java SDK and may need to set JAVA_HOME to point to your root java installation.