GoogleCloudPlatform / zetasql-toolkit

The ZetaSQL Toolkit is a library that helps users use ZetaSQL Java API to perform SQL analysis for multiple query engines, including BigQuery and Cloud Spanner.
Apache License 2.0
39 stars 10 forks source link

GLIBC version not found when running examples #13

Closed zjingwang closed 1 year ago

zjingwang commented 1 year ago

failed when running AnalyzeWithoutCatlog with error below

/tmp/nativeutils667648329377895/liblocal_service_jni.so: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /tmp/nativeutils667648329377895/liblocal_service_jni.so)

java version

java-14-openjdk

os

centos 7
ppaglilla commented 1 year ago

This is a compatibility issue from ZetaSQL itself, rather than with the toolkit. ZetaSQL is built on C++ and the Java API loads a shared library with the native code (that's the liblocal_service_jni.so file mentioned in the error message). The problem happens because the shared library dynamically links to a version of glibc which is not available by default on CentOS 7.

My recommendation would be switching to either:

If those don't work, you may be able to add the required shared libraries to your system. But messing with glibc versions in a system might not be the best of ideas.