Hi, try to find  “java.library.path” in Strom worker log,  you can see the 
environment parameter:

>>>>

worker [INFO] Launching worker for…….
…."java.library.path" "/usr/local/lib:/opt/local/lib:/usr/lib”….

>>>>

put your native lib file to these paths, it makes sense to me. ^_^



> 在 2015年6月24日,02:45,Sergey Pavlov <[email protected]> 写道:
> 
> Hi all,
> 
> I am experiencing issues when calling native methods. I added the library the 
> usual way: System.load("/path/to/library.so");
> I tried to run my topology with both maven and eclipse but both produce same 
> results. Here is the error description:
> 
> 5696 [Thread-11-spout] ERROR backtype.storm.daemon.executor - 
> java.lang.UnsatisfiedLinkError: com.storm.Spout.Source.create()J
>              at com.storm.Spout.Source.create(Native Method) ~[bin/:na]
>              at com.storm.Spout.Source.open(Source.java:51) ~[bin/:na]
>              at 
> backtype.storm.daemon.executor$fn__6579$fn__6594.invoke(executor.clj:522) 
> ~[storm-core-0.9.5.jar:0.9.5]
>              at backtype.storm.util$async_loop$fn__459.invoke(util.clj:461) 
> ~[storm-core-0.9.5.jar:0.9.5]
>              at clojure.lang.AFn.run(AFn.java:24) [clojure-1.5.1.jar:na]
>              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
> 
> Source.java:51 is the line where I call native (C++) method create()
> 
> My zeromq version is 4.1.2
> 
> Does anyone know what the issue could be?
> Thanks a lot for your help.
> 
> Best,
> Sergey Pavlov
> 

Reply via email to