Need to add --allow-root when launching notebook
I have to add --allow-root when launching ipython notebook
See updated PYSPARK_DRIVER_PYTHON_OPTS line
pushd ${TFoS_HOME}/examples/mnist
PYSPARK_DRIVER_PYTHON="jupyter"
PYSPARK_DRIVER_PYTHON_OPTS="notebook --allow-root --no-browser --ip=hostname"
pyspark --master ${MASTER}
--conf spark.cores.max=${TOTAL_CORES}
--conf spark.task.cpus=${CORES_PER_WORKER}
--py-files ${TFoS_HOME}/tfspark.zip,${TFoS_HOME}/examples/mnist/tf/mnist_dist.py
--conf spark.executorEnv.LD_LIBRARY_PATH="/usr/local/cuda/lib64:$JAVA_HOME/jre/lib/amd64/server:$HADOOP_HOME/lib/native"
--conf spark.executorEnv.JAVA_HOME="$JAVA_HOME"
--conf spark.executorEnv.HADOOP_HDFS_HOME=”$HADOOP_HOME”
--conf spark.executorEnv.CLASSPATH=$($HADOOP_HOME/bin/hadoop classpath --glob)
--driver-library-path="/usr/local/cuda/lib64"
@bigdataexplorer thanks for the note. Are you running IPython as the root user?
Yes. I know I shouldn't run notebook as root :)
K, thx. Will just leave this as a note for others doing the same then...