From 0b4ca74e68c201239c772e6e97a9f4eceaaf8a36 Mon Sep 17 00:00:00 2001 From: zhangyifan27 Date: Wed, 16 Dec 2020 14:38:35 +0800 Subject: [PATCH] fix(hdfs): fix 'libjvm.so not found' error --- 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)