spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matei Zaharia <matei.zaha...@gmail.com>
Subject Re: OpenCV + Spark : Where to put System.loadLibrary ?
Date Tue, 11 Mar 2014 19:05:32 GMT
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.das83@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" <jaonary@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 


Mime
View raw message