Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume >> mail # dev >> help with Djava.library.path in flume

Copy link to this message
help with Djava.library.path in flume
Hi, everyone..

My flume code needs to use zeromq.jar, so i imported it. It compile
successfully and install successfully.

However, when I run flume-ng, it can not link to libjzmq.so. I googled it
and find out the java library path for JVM options need to be set at first.

So I parse the follows into the flume-ng command line

Then I found out....Djava.library.path has been overwritten!!!!

see the follows:
 bin/flume-ng agent -Djava.library.path=/usr/local/lib -c conf -f
~/Desktop/myFlumeConf/agent1.conf -n agent1
+ exec /usr/lib/jvm/java-1.6.0-openjdk/bin/java -Xmx20m
-Djava.library.path=/usr/local/lib -Dflume.root.logger=INFO,console -cp
-Djava.library.path= org.apache.flume.node.Application -f
/home/liting/Desktop/myFlumeConf/agent1.conf -n agent1
2012-12-29 14:28:17,873 (main) [INFO -
Starting lifecycle supervisor 1
2012-12-29 14:28:17,883 (main) [INFO -
org.apache.flume.node.FlumeNode.start(FlumeNode.java:54)] Flume node
starting - agent1
2012-12-29 14:28:17,893 (lifecycleSupervisor-1-1) [INFO -
Configuration provider starting

my code still reports the following error.
NoClassDefFoundError: org/zeromq/ZMQ

Any clue?