zhangyifan27 opened a new pull request #658: URL: https://github.com/apache/incubator-pegasus/pull/658
### What problem does this PR solve? <!--add issue link with summary if exists--> 1. Fix linker error like this: ld: warning: libjvm.so, needed by /root/pegasus/pegasus/DSN_ROOT/lib/libdsn_meta_server.so, not found (try using -rpath or -rpath-link) /root/pegasus/pegasus/rdsn/thirdparty/output/lib/libhdfs.so.0.0.0: undefined reference to `JNI_CreateJavaVM@SUNWprivate_1.1' /root/pegasus/pegasus/rdsn/thirdparty/output/lib/libhdfs.so.0.0.0: undefined reference to `JNI_GetCreatedJavaVMs@SUNWprivate_1.1' collect2: error: ld returned 1 exit status make[2]: *** [server/pegasus_server] Error 1 make[1]: *** [server/CMakeFiles/pegasus_server.dir/all] Error 2 2. Add config_hdfs.sh to help users set `LD_LIBRARY_PATH` and `CLASSPATH` when running pegasus binaries which use libhdfs. ### What is changed and how it works? - Link jvm library in CMakeLists - Add config_hdfs.sh ### Check List <!--REMOVE the items that are not applicable--> Tests <!-- At least one of them must be included. --> - Manual test (add detailed scripts or steps below) Build and run pegasus with libjvm.so directory not set in `LD_LIBRARY_PATH` Related changes - Need to cherry-pick to the release branch - Need to update the documentation - Need to be included in the release note ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
