In short you should add it to a static initializer or singleton object that you 
call before accessing your library.

Also add your library to SPARK_LIBRARY_PATH so it can find the .so / .dll.

Matei

On Mar 11, 2014, at 7:05 AM, Debasish Das <debasish.da...@gmail.com> wrote:

> Look at jblas operations inside mllib...jblas calls jniloader internally 
> which loadd up native code when available....
> On Mar 11, 2014 4:07 AM, "Jaonary Rabarisoa" <jaon...@gmail.com> wrote:
> Hi all,
> 
> I'm trying to build a stand alone scala spark application that uses opencv 
> for image processing.
> To get opencv works with scala one need to call
> 
>  System.loadLibrary(Core.NATIVE_LIBRARY_NAME)
> 
> once per JVM process. How to call it inside spark application distributed on 
> several nodes ?
> 
> Best regards,
> 
> Jaonary 

Reply via email to