配置Ipython Nodebook 运行 Python Spark 程序
配置Ipython Nodebook 运行 Python Spark 程序 1.1、安装Anaconda Anaconda的官网是 https://www.anaconda.com ,下载对应的版本; 1.1.1、下载Anaconda $ cd /opt/local/src/ $ wget -c https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh 1.1.2、安装Anaconda # 参数 -b 表示 batch -p 表示指定安装目录 $ bash Anaconda3-5.2.0-Linux-x86_64.sh -p /opt/local/anaconda -b 1.1.3、配置Anaconda相关环境变量 配置环境变量 $ tail -n 8 ~/.bashrc # Anaconda3 export ANACONDA_PATH=/opt/local/anaconda export PATH=$ANACONDA_PATH/bin:$PATH # PySpark export PYSPARK_DRIVER_PYTHON=$ANACONDA_PATH/bin/ipython export PYSPARK_PYTHON=$ANACONDA_PATH/bin/python 启用环境变量 $ source ~/