Thanks Jakob for sharing the link. Will try it out.
Regards,
Vineet
On Tue, Dec 13, 2016 at 3:00 PM, Jakob Odersky wrote:
> Hi Vineet,
> great to see you solved the problem! Since this just appeared in my
> inbox, I wanted to take the opportunity for a shameless plug:
>
Hi Vineet,
great to see you solved the problem! Since this just appeared in my
inbox, I wanted to take the opportunity for a shameless plug:
https://github.com/jodersky/sbt-jni. In case you're using sbt and also
developing the native library, this plugin may help with the pains of
building and
Thanks Steve and Kant. Apologies for late reply as I was out for vacation.
Got it working. For other users:
def loadResources() {
System.loadLibrary("foolib")
val MyInstance = new MyClass
val retstr = MyInstance.foo("mystring") // method trying to invoke
}
On 27 Nov 2016, at 02:55, kant kodali
> wrote:
I would say instead of LD_LIBRARY_PATH you might want to use java.library.path
in the following way
java -Djava.library.path=/path/to/my/library or pass java.library.path along
with spark-submit
I would say instead of LD_LIBRARY_PATH you might want to use java.library.
path
in the following way
java -Djava.library.path=/path/to/my/library or pass java.library.path
along with spark-submit
On Sat, Nov 26, 2016 at 6:44 PM, Gmail wrote:
> Maybe you've already checked
Maybe you've already checked these out. Some basic questions that come to my
mind are:
1) is this library "foolib" or "foo-C-library" available on the worker node?
2) if yes, is it accessible by the user/program (rwx)?
Thanks,
Vasu.
> On Nov 26, 2016, at 5:08 PM, kant kodali
If it is working for standalone program I would think you can apply the
same settings across all the spark worker and client machines and give
that a try. Lets start with that.
On Sat, Nov 26, 2016 at 11:59 AM, vineet chadha
wrote:
> Just subscribed to Spark User. So,
Just subscribed to Spark User. So, forwarding message again.
On Sat, Nov 26, 2016 at 11:50 AM, vineet chadha
wrote:
> Thanks Kant. Can you give me a sample program which allows me to call jni
> from executor task ? I have jni working in standalone program in
>
Yes this is a Java JNI question. Nothing to do with Spark really.
java.lang.UnsatisfiedLinkError typically would mean the way you setup
LD_LIBRARY_PATH
is wrong unless you tell us that it is working for other cases but not this
one.
On Sat, Nov 26, 2016 at 11:23 AM, Reynold Xin
That's just standard JNI and has nothing to do with Spark, does it?
On Sat, Nov 26, 2016 at 11:19 AM, vineet chadha
wrote:
> Thanks Reynold for quick reply.
>
> I have tried following:
>
> class MySimpleApp {
> // ---Native methods
> @native def fooMethod (foo:
bcc dev@ and add user@
This is more a user@ list question rather than a dev@ list question. You
can do something like this:
object MySimpleApp {
def loadResources(): Unit = // define some idempotent way to load
resources, e.g. with a flag or lazy val
def main() = {
...
11 matches
Mail list logo