Java gateway process exited before sending its port number

Can someone help here…trying to set SparkContext object
sc = SparkContext.getOrCreate(conf = conf)

Hi,

Make sure you have set the environment variables correctly. You can refer to the following blog for it: Running PySpark in Jupyter / IPython notebook | CloudxLab Blog