美文网首页
安装了collectd-java还报找不到java.so

安装了collectd-java还报找不到java.so

作者: 风恋绝尘 | 来源:发表于2016-12-04 13:21 被阅读0次

当我们安装的collectd-java,就会生成java.so文件,但是重启collectd的时候却还是报找不到java.so文件是怎么回事呢,原来是collectd想找java 6版本的,为了修复这个bug,我们执行如下操作

安装yum install collectd-java
生成/usr/lib64/collectd/java.so文件,
重启systemctl restart collectd
报错:tail -f /var/log/collectd.log
lt_dlopen ("/usr/lib64/collectd/java.so") failed: file not found. The most common cause for this problem is missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object.

解决办法:
rm /usr/lib64/libjvm.so
ln -svf /m8/jdk/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so /usr/lib64/libjvm.so
systemctl restart collectd

参考:https://community.rsa.com/thread/185477

是在安装hbase-collectd的时候解决的
因为10-jmx.conf文件里面有如下描述:

apt-get install collectd-java collectd-generic-jmx

If your collectd log shows an error loading java.so, see

http://www.willdurness.com/collectinggraphing-information-on-neo4j-via-collectd-and-graphite/

and how they setup LD_LIBRARY_PATH. The basic problem is

collectd wants open JDK 6. You can fix this by adding

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/jvm/java-7-oracle/jre/lib/amd64/server

to your collectd init file, but pointing to the correct

library path for your java install.

相关文章

  • 安装了collectd-java还报找不到java.so

    当我们安装的collectd-java,就会生成java.so文件,但是重启collectd的时候却还是报找不到j...

  • Flutter安装-- six报错问题

    明明安装了six,flutter doctor检测环境时还报错问题: 终端运行: ok ~

  • 还报

    他与她自小青梅竹马,她每每被欺负之时,他瘦弱的身体便挡在她前面。他说:“不怕,我保护你。” 战火纷飞,二人离散。 ...

  • 安装png

    yum install libpng libpng-devel 还报错 说找不到libpng.so.16 我将LD...

  • centos 安装pcre报c++编译器错误

    gcc已经安装了但是还报c++编译器不支持的错误。于是找到如下组件安装:yum install gcc-c++再次...

  • flutter报错 brew install cocoapods

    问题出现场景: 当你想安装一个包的时候,明明装上了,而且也装了 cocoapods 它却运行不起来还报错!? 错误...

  • Vue生命周期函数详解

    Vue2.x 你不能使用箭头函数来定义一个生命周期方法!!因为this啥也找不到还报错! beforeCreate...

  • 谢安也太能装了

    谢安也太能装了 2022年10月12日 最近这几天,中国女排又开战了,不过成绩也不尽如人意,没有了郞指导的中国队也...

  • Win10启动修复(找不到grub引导)

    起因:装了win10,然后在另一个分区里装了Ubuntu。后来格掉了Ubuntu所在的分区,Windows找不到引...

  • 运行WinEdt 10,解决“系统找不到指定文件”

    换了电脑之后再次使用WinEdt 10出现了“系统找不到指定文件”的错误 重装了以后还是不行,电脑装了WinEdt...

网友评论

      本文标题:安装了collectd-java还报找不到java.so

      本文链接:https://www.haomeiwen.com/subject/kgjhmttx.html