Re: Unsatisfied Link Error

Posted by arpit8622 on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Unsatisfied-Link-Error-tp7251p7274.html

I am not sure but the reason could be that you are not submitting "fat-jar" containing all the libs when submitting it to job manager. 

When you run it through intellij it takes care of including the libraries.

To create fat jar use maven-shade-plugin.

Let me know if it works.

Thanks,
Arpit

On Mon, May 30, 2016 at 2:41 PM, Debaditya Roy <[hidden email]> wrote:
I was trying to run a basic program in java by submitting to the job manager in Flink. I have a native library from open CV. When I try to submit the job I get "java.lang.UnsatisfiedLinkError: no opencv_java310 in java.library.path", however when I run it on Intellij by setting up the flink execution environment I get correct results. I have followed some solutions from the apache flink support website:https://mail-archives.apache.org/mod_mbox/flink-user/201604.mbox/%3CCAO0MGUj_h==sw76-TWF6x8fnT_Vdc84mwu=YLejjn=bG-up+MQ@...%3E and have modified my conf.yaml file accordingly (by pointing env.java.opts: -Djava.library.path="/path of Open CV library", but no luck, Maybe my question is very basic , but still I am stuck, any help would be highly appreciated.

 Thanks :-)