-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[scala-package] Running example on spark has the error java bin #4967
Comments
in your terminal, after you type java, what you got? |
You can use |
@CodingCat In my terminal, when I type java, I get this
|
@Javelinjs I run the example https://github.com/dmlc/mxnet/blob/master/scala-package/spark/src/main/scala/ml/dmlc/mxnet/spark/example/ClassificationExample.scala It calls ml.dmlc.mxnet.spark.MXNet.setJava to specify the java binary. I see in the source code, the start process of scheduler is in ParameterServer.scala, the error raised in here
From my spark log, I got this:
I was confused, why the error is |
Seems that the environment PATH is not set properly for subprocess to find java. Try specifying |
And I set the --java to /usr/bin/java, but still has the error:
|
set --java to /usr/bin/java/bin/java |
This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks! |
@Javelinjs @CodingCat
I run the spark example of mxnet on spark cluster. The error raised in the staring of scheduler.
The main error is:
java.io.IOException: Cannot run program "java": error=2, No such file or directory
I was confused, and tried to change it to the java bin '/usr/bin/java', but still failed.
I compiled mxnet with the latest version and the environment of cluster is centos 6.5
This is the logs:
The text was updated successfully, but these errors were encountered: