Hi Brett,

You would need to set the java library path (pointing to the location of
the plasma native library).

Please see this script which executes tests for plasma on how to do this (
https://github.com/apache/arrow/blob/master/java/plasma/test.sh).

Thx.

On Wed, Nov 14, 2018 at 2:47 AM Brett Kosciolek (RIT Student) <
bpk9...@rit.edu> wrote:

> I'm trying to use the Java API for Apache Arrow to connect to a memory
> store. I've done this in Python, successfully, using the Python API by
> following the guide here.
>
> I've also looked at the C++ API documentation, but it didn't help much.
>
> The Java Docs makes it look similar to the other documentation.
>
>     Make sure the plasma object store is running (usually "/tmp/plasma" for
> the examples).
>         Create client
>         Connect to the client by providing the object store
> ("/tmp/plasma"), and ("", 0) for the other two parameters.
>
> However, when attempting to use the following line, I get an
> UnsatisfiedLinkError, that I can't find any reference to within the Apache
> Arrow documentation. Other solutions found of google (such as calling
> System.load) haven't been successful either.
>
>     PlasmaClient client = new PlasmaClient("/tmp/plasma", "", 0);
>
> A copy of my error messages can be seen below:
>
>     Exception in thread "main"
>
> java.lang.UnsatisfiedLinkError:org.apache.arrow.plasma.PlasmaClientJNI.connect(Ljava/lang/String;Ljava/lang/String;I)J
> at org.apache.arrow.plasma.PlasmaClientJNI.connect(Native Method) at
> org.apache.arrow.plasma.PlasmaClient.<init>(PlasmaClient.java:44) at
> plas.main(plas.java:11)
>
> Any help is appreciated. Thank you!
>

Reply via email to