12.IPython Nodebook中使用Spark
1.创建ipynodebook工作目录
mkdir -p ~/pythonwork/ipynodebook
cd ~/pythonwork/ipynodebook
2.启动pysaprk
PYSPARK_DRIVER_PYTHON=ipython PYSPARK_DRIVER_PYTHON_OPTS="notebook" pyspark
注:
修改/etc/hosts
192.168.56.100 localhost
1.创建ipynodebook工作目录
mkdir -p ~/pythonwork/ipynodebook
cd ~/pythonwork/ipynodebook
2.启动pysaprk
PYSPARK_DRIVER_PYTHON=ipython PYSPARK_DRIVER_PYTHON_OPTS="notebook" pyspark
注:
修改/etc/hosts
192.168.56.100 localhost