New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe. #6873
Comments
Could you give a simple example to reproduce your error? I don't know what the variables' type is in your code. @ToutaF |
@qiuxin2012 ok. First of all thank you for your reply.
|
Is
In my docker container, it works fine. And I need more information to locate the problem:
|
@qiuxin2012 ok sir,
state:
the Java stack trace :
|
It seems the input |
@qiuxin2012 Thank you for your responses
However, in addition to this error I encountered another one when I restarted the container and I tried to run nn context: |
For the
I find it's caused by
|
For |
@qiuxin2012 indeed I removed the container even the image then pull it again and I created a new container but the error remains the same. |
Yes, it's
Have you changed any environment variables? Could you give me the steps from creating container(included)? @fatenlouati |
No I changed nothing. |
@Le-Zheng Thank you for your reply. This error was fixed.
I got this error:
How to fix it please? where is the problem exactly. The code worked fine outside of bigdl :( |
It's caused by an error input size.
Your state is a 1D vector, our predict API assume your input is a batch of input. Asmatrix will help you to resize your input as a batch-like input(to 2D, [1, 94]).
|
Can we add more check and better error message? |
@qiuxin2012 Thank you for your responses.
according to this issue, it may be caused by a compatibility issue between Spark and Java. |
The error means your Does your q_network.fit means train a single batch? Please add
|
@qiuxin2012 I followed your instructions,
This is the updated loop
But I got an infinite loop of those errors (or warnings) :
|
The fit runs successfully on spark now, no errors. If you just want to Accelerate your tf or pytorch application, our Nano may be a better option. See the Nano in choosing-the-right-bigdl-library. |
@qiuxin2012 I setted |
@fatenlouati I have opened another issue for it, |
@qiuxin2012 Thank you very much |
Hello,
Im using docker container built by this BigDL image.
when I tried to collect the predictions using collect() this error occurs:
Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.collectAndServe.
this is the code:
this is the error:
could anyone explain why this error occured and how fix it
The text was updated successfully, but these errors were encountered: