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

Failed to start pyspark kernel on SoS #6

Open
ambamanyloic opened this issue Sep 23, 2020 · 5 comments
Open

Failed to start pyspark kernel on SoS #6

ambamanyloic opened this issue Sep 23, 2020 · 5 comments

Comments

@ambamanyloic
Copy link

Hi Bo

Can you confirm that you can effectively write data into Hive from the spark_python_conductor_cluster kernel on SoS ?
Even a simple "import pyspark"command results in a Permission Denied on the '/tmp/...' folder
Attaching a screenshot

@ambamanyloic
Copy link
Author

Screen Shot 2020-09-23 at 11 24 47 AM

@BoPeng
Copy link
Contributor

BoPeng commented Sep 23, 2020

What is a spark_python_conductor_cluster kernel? Could you send me a link to the kernel so that I can try it on my mac?

@ambamanyloic
Copy link
Author

spark_python_conductor_cluster is an IBM spark kernel provided by IBM to help with resources, slots ... it does not change anything to the embedded spark cluster setup itself , I can send you the kernel json if you'd like . Basically it seems that the combination of sos and spark cluster mode are not working well together , the spark cluster mode can not write to /tmp when it is running under sos , but when I use spark cluster by itself it works ....can you just try to do a "spark" under your spark cluster on sos and confirms it works ?

@BoPeng
Copy link
Contributor

BoPeng commented Sep 23, 2020

We do not have a spark cluster here and cannot test. Just looking at the message we might be looking at

https://github.com/vatlab/sos-notebook/blob/bfdac0f92168913bc3fb142e1e2e375da6a3333d/src/sos_notebook/kernel.py#L1493

The temp file stuff is used to capture error message from the kernel (if its second attempt to start also failed), so the root problem is that sos failed to start the kernel. Let me see how I can get my hands on a spark environment and test.

@ambamanyloic
Copy link
Author

Ok thanks , let me know , it looks like for spark everything has to go through local but you re right , the spark kernel does not even start for me

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

2 participants