java-home

M1 trying to run SparkSession, but having RuntimeError: Java gateway process exited before sending its port number

M1 trying to run SparkSession, but having RuntimeError: Java gateway process exited before sending its port number Question: I am trying to run a simple command spark = SparkSession.builder.appName("Basics").getOrCreate() in my M1 Mac, Monterey 12.6.2, but it throws an error: The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for …

Total answers: 1