TensorFlowOnSpark icon indicating copy to clipboard operation
TensorFlowOnSpark copied to clipboard

Need to add --allow-root when launching notebook

Open bigdataexplorer opened this issue 9 years ago • 3 comments

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 avatar Jul 20 '17 07:07 bigdataexplorer

@bigdataexplorer thanks for the note. Are you running IPython as the root user?

leewyang avatar Jul 20 '17 22:07 leewyang

Yes. I know I shouldn't run notebook as root :)

bigdataexplorer avatar Jul 21 '17 04:07 bigdataexplorer

K, thx. Will just leave this as a note for others doing the same then...

leewyang avatar Jul 21 '17 16:07 leewyang