How to set port for pyspark jupyter notebook?
问题 I am starting a pyspark jupyter notebook with a script: #!/bin/bash ipaddres=... echo "Start notebook server at IP address $ipaddress" function snotebook () { #Spark path (based on your computer) SPARK_PATH=/home/.../software/spark-2.3.1-bin-hadoop2.7 export PYSPARK_DRIVER_PYTHON="jupyter" export PYSPARK_DRIVER_PYTHON_OPTS="notebook" # For python 3 users, you have to add the line below or you will get an error export PYSPARK_PYTHON=python3 $SPARK_PATH/bin/pyspark --master local[10] }