title: how to use jni in spark?
body: <p>I want to use jni to call my c++ lib in spark. When i sbt run my program, it shows that java.lang.UnsatisfiedLinkError: no hq_Image_Process in java.library.path , so obviously the program can not find my hq_Image_Process.so . </p>
  
  <p>In hadoop, -files can distribute the xxx.so file to the slaves like this: </p>
  
  <pre><code>[hadoop@Master ~]$ hadoop jar JniTest3.jar -files /home/hadoop/Documents/java/jni1/bin/libFakeSegmentForJni.so FakeSegmentForJni.TestFakeSegmentForJni input output
  </code></pre>
  
  <p>Are there any ways to call my hq_Image_Process.so like hadoop in spark?
  I would appreciate any help.</p>