Code is below
import findspark
findspark.init(r'C:\Users\user\Documents\spark-3.0.0-bin-hadoop2.7')
import pyspark
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('Basics').getOrCreate()
Got error Exception: Java gateway process exited before sending its port number
Disclaimer: Already added JAVA_HOME
to env variables, I didnt needed to add spark
as i am calling init
Already went through so many links to check the error could not resolve