Today, I'm facing the SparkContext init error many times. I stopped few unused services and tried again still this error persist. I'm running MapR sandbox on 16GB RAM laptop. Until yesterday no issues.
Any advice appreciated.
Hi Venkateswara Rao Anampudi,
I'm sorry you're having trouble with the sandbox! Have you tried shutting the virtual machine down, and restarting it? Have you tried using a fresh machine (from a new download of the MapR sandbox)? Sometimes these simple fixes will clear issues. If not, perhaps Andries Engelbrecht or carol mcdonald can help you with further troubleshooting.
Hope this helps!
You are correct. The latest sandbox works fine and can able to init SparkContext.
Thanks a lot for your prompt response.
How are you running spark ? On the sandbox you should run spark
$spark-shell --master local
spark-submit --class classname --master local jar file
can you copy paste command and error
I tried with ' $spark-shell --master local' but no luck. I'd have tried this option ' spark-submit --class classname --master local jar file ' but I already downloaded new sandbox and installed. It's working as expected and SparkContext getting initialized. Thank you
Retrieving data ...