key not found: _PYSPARK_DRIVER_CALLBACK_HOST

前端 未结 6 550
粉色の甜心
粉色の甜心 2020-12-10 14:13

I\'m trying to run this code:

import pyspark
from pyspark.sql import SparkSession

spark = SparkSession.builder \\
        .master(\"local\") \\
        .app         


        
6条回答
  •  醉话见心
    2020-12-10 15:02

    I have got the similar errors: java.util.NoSuchElementException: key not found: _PYSPARK_DRIVER_CALLBACK_HOST and Exception: Java gateway process exited before sending its port number

    Running the command "export PYTHONPATH=$SPARK_HOME/python/:$PYTHONPATH" or setting this to .bashrc resolved the issue.

    Please also check if the mapr credentails are setup.

提交回复
热议问题