Skip to content
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

driver image does not crashes on Java exceptions #5

Open
dberardo opened this issue Feb 21, 2021 · 0 comments
Open

driver image does not crashes on Java exceptions #5

dberardo opened this issue Feb 21, 2021 · 0 comments

Comments

@dberardo
Copy link

Thanks for the helpful material.

I have manged to setup a test spark cluster from the stack file suggested and everything worked. I had to created custom docker images to update the python and pyspark versions , which gave me some headache, but is done now (can make a PR in github if needed).

I have now one issue with the spark driver and wanted to check if there is a known solution. I am working with spark structured streaming and thus need to deploy some persistent spark job. What i have done here is building a custom spark-dirver docker image which starts a python code and deploys the job in "cluster" mode. This works, however if any Java exception is triggered, the job dies, but the container does not ... which should be the intended behavior.

The command CMD i am using for starting the python script is:

CMD /spark/bin/spark-submit \
--packages org.apache.spark:spark-streaming-kafka-0-10_2.12:${SPARK_VERSION},org.apache.spark:spark-sql-kafka-0-10_2.12:${SPARK_VERSION} \
--executor-memory $SPARK_EXECUTOR_MEMORY \
--executor-cores $SPARK_EXECUTOR_CORES \
# --supervise \
script.py

and i have tried both with and without --supervise but without success.

any hint why the container does not fail with exit code 1 when java exceptions occur?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant