arrow-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ALBERTO Bocchinfuso <>
Subject [Scala] Plasma client for java not connecting
Date Sun, 26 Aug 2018 19:17:40 GMT
Hi all,

It’s a while I’m trying to connect to a plasma store via scala.
I’m using the arrow Java API from scala, but if I use the classes in org.apache.arrow.plasma,
I cannot reach the host.
I even tried to start the process before attempt to connect from the same program, similarly

But I cannot reach the host either way. I post the code I wrote in the following:

import org.apache.arrow.plasma.PlasmaClient;

object TestPlasma {
    def main(args: Array[String]) {
        val builder = new ProcessBuilder("plasma_store", "-m", "268435456", "-s", "test");
        try {
            println("Start process " + " OK");
        } catch  {
            case ex: IOException =>

        val plasmaClient = new PlasmaClient("test","",1000);

>From the execution I get:

Start process  OK
[error] (run-main-7) java.lang.UnsatisfiedLinkError: org.apache.arrow.plasma.PlasmaClientJNI.connect(Ljava/lang/String;Ljava/lang/String;I)J
[error] java.lang.UnsatisfiedLinkError: org.apache.arrow.plasma.PlasmaClientJNI.connect(Ljava/lang/String;Ljava/lang/String;I)J
[error]             at org.apache.arrow.plasma.PlasmaClientJNI.connect(Native Method)
[error]             at org.apache.arrow.plasma.PlasmaClient.<init>(
[error]             at TestPlasma$.main(plasma_test.scala:15)
[error]             at TestPlasma.main(plasma_test.scala)
[error]             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error]             at sun.reflect.NativeMethodAccessorImpl.invoke(
[error]             at sun.reflect.DelegatingMethodAccessorImpl.invoke(
[error]             at java.lang.reflect.Method.invoke(
[error]             at sbt.Run.invokeMain(Run.scala:93)
[error]             at sbt.Run.run0(Run.scala:87)
[error]             at sbt.Run.execute$1(Run.scala:65)
[error]             at sbt.Run.$anonfun$run$4(Run.scala:77)
[error]             at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$
[error]             at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10)
[error]             at sbt.TrapExit$
[error]             at
[error] java.lang.RuntimeException: Nonzero exit code: 1
[error]             at sbt.Run$.executeTrapExit(Run.scala:124)
[error]             at
[error]             at sbt.Defaults$.$anonfun$bgRunTask$5(Defaults.scala:1185)
[error]             at sbt.Defaults$.$anonfun$bgRunTask$5$adapted(Defaults.scala:1180)
[error]             at sbt.internal.BackgroundThreadPool.$anonfun$run$1(DefaultBackgroundJobService.scala:366)
[error]             at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$
[error]             at scala.util.Try$.apply(Try.scala:209)
[error]             at sbt.internal.BackgroundThreadPool$
[error]             at java.util.concurrent.ThreadPoolExecutor.runWorker(
[error]             at java.util.concurrent.ThreadPoolExecutor$
[error]             at
[error] (Compile / run) Nonzero exit code: 1

If I try to reach the plasma store I start in the code above with a python script, I reach
it without any problem.

Thank you in advance and sorry if I write both in dev and user, but I had many problems in
subscribing to user, I haven’t understood if this mailing list is up and ready or not.


View raw message