Re: Using native library in Flink

2017-07-19 Thread Mike Accola
. If I run this same application twice in succession, am I running in different processes or JVMs? Please reply if anyone has suggestions on other things to try. --Mike From: Eron Wright To: dev@flink.apache.org Date: 07/18/2017 04:40 PM Subject: Re: Using native library in

Re: Using native library in Flink

2017-07-18 Thread Eron Wright
The solution mentioned by Timo works well with a standalone Flink cluster but might not work with a YARN or Mesos cluster. An alternative is to have your Java library contain the native library within itself, and to extract it to a temporary directory before calling `System.loadLibrary(...)`. Note

Re: Using native library in Flink

2017-07-18 Thread Timo Walther
Hi Mike, do you run Flink locally or in a cluster? You have to make sure that VM argument -Djava.library.path is set for all Flink JVMs. Job Manager and Task Managers might run in separate JVMs. Make also sure that the library is accessible from all node. I don't know what happens if the file

Using native library in Flink

2017-07-17 Thread Mike Accola
I am new Flink user just trying to learn a little bit. I am trying to incorporate an existing C++ library into a new Flink application. I am seeing some strange behavior when trying to link in the native (C++) library using java via JNI. I am running this on Linux (RHEL6) I can run my appl