From d4f45be9f6a4b015bd14190d51b36a280f12d61b Mon Sep 17 00:00:00 2001 From: Zhang Yifan Date: Thu, 17 Dec 2020 14:14:39 +0800 Subject: [PATCH] fix(hdfs): fix 'libjvm.so not found' error (#691) --- bin/dsn.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/dsn.cmake b/bin/dsn.cmake index 4dcdf4d103..fb89e36998 100644 --- a/bin/dsn.cmake +++ b/bin/dsn.cmake @@ -312,6 +312,7 @@ function(dsn_setup_thirdparty_libs) # libhdfs find_package(JNI REQUIRED) message (STATUS "JAVA_JVM_LIBRARY=${JAVA_JVM_LIBRARY}") + link_libraries(${JAVA_JVM_LIBRARY}) link_directories(${DSN_THIRDPARTY_ROOT}/lib) link_directories(${DSN_THIRDPARTY_ROOT}/lib64)