riemann.io add jar to classpath

那年仲夏 提交于 2019-12-11 13:56:23

问题


I have written custom clojure functions that I want to use in my riemann configuration. I am using leiningen to build jar file (with dependencies) containing my functions. What is the right way to include this jar file in the classpath when starting riemann ?


回答1:


I have only found this way. I'm not sure whether this is the right way :

java -cp "/path/to/my/custom.jar:/path/to/riemann-0.2.6/lib/riemann.jar" riemann.bin /path/to/riemann-0.2.6/etc/riemann.config




回答2:


I think, you can config:

EXTRA_CLASSPATH= path jar

in

/etc/sysconfig/riemann with Centos.

But i have a problem is cannot add multi EXTRA_CLASSPATH in riemann?

Pls help me, thanks a lot!



来源:https://stackoverflow.com/questions/27766730/riemann-io-add-jar-to-classpath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!