测试基于apache impala 4.1.0 版本
如果出现该错误
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
该问题是因为impala的二进制命令找不到linux中的jdk类库(xx.so)
执行以下命令,将类库加载并刷新到Linux的类库中,即解决该错误
echo $JAVA_HOME/jre/lib/amd64/server > /etc/ld.so.conf.d/impala-jdk-x86_64.conf;
ldconfig;
可以使用 ldd $IMPALA_HOME/be/service/impalad
命令,检查所有类库是否找到并加载成功。
该命令是将impala的启动所需的类库加载到Linux类库中,可与以上命令一起执行,最后使用 ldconfig
刷新类库
echo $IMPALA_HOME/lib64 > /etc/ld.so.conf.d/impala-x86_64.conf;