juypter-notebook安装配置
Table of Contents
1 jupyter notebook概述
Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。
前端展现基于浏览器,可以远程使用(服务器上安装使用jupyter notebook)
跨平台 ipad就可以用?
通过内核支持语言扩展
jupyter kernelspec list
2 jupyter notebook安装
pip3 install jupyter jupyter notebook
3 在jupyter notebook中运行pyspark
PYSPARK_DRIVER_PYTHON=jupyter PYSPARK_DRIVER_PYTHON_OPTS="notebook" ~/run/spark-2.0.0-bin-hadoop2.7/bin/pyspark
4 在jupyter notebook中安装toree(scala for spark)
4.1 版本要求
scala: 2.10.4
spark: 1.6.2
高版本的安装包尚未正式发布,需要自己编译、安装(需要docker,没有走通)
4.2 配置环境变量
export SCALA_HOME=/usr/local/Cellar/scala/2.10.4 export PATH=$SCALA_HOME/bin:$PATH export SPARK_HOME="/Users/galaxy/run/spark-1.6.2-bin-hadoop2.6/" export PATH=$SPARK_HOME/bin:$PATH
4.3 执行安装
pip3 install --pre toree jupyter toree install
4.4 运行
jupyter notebook New -> Apache Toree-scala
5 参考资料
Running Spark Applications Using IPython and Jupyter Notebooks
http://www.cloudera.com/documentation/enterprise/5-5-x/topics/spark_ipython.html#ipython__notebook_quickstart
Using IPython Notebook with Apache Spark - Hortonworks
http://zh.hortonworks.com/hadoop-tutorial/using-ipython-notebook-with-apache-spark/
27 Jupyter Notebook tips, tricks and shortcuts
https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/
GitHub - tribbloid/ISpark: An Apache Spark-shell backend for IPython
https://github.com/tribbloid/ISpark
GitHub - alexarchambault/jupyter-scala: Lightweight Scala kernel for Jupyter / IPython 3
https://github.com/alexarchambault/jupyter-scala
GitHub - apache/incubator-toree: Mirror of Apache Toree (Incubating)
https://github.com/apache/incubator-toree
Hadoop Dev | How to install Jupyter Notebook for Spark - Hadoop Dev
https://developer.ibm.com/hadoop/2016/05/04/install-jupyter-notebook-spark/
How to install the Scala Spark (Apache Toree) Jupyter kernel with GeoMesa support - GeoMesa - Confluence
https://geomesa.atlassian.net/wiki/display/GEOMESA/How+to+install+the+Scala+Spark+(Apache+Toree)+Jupyter+kernel+with+GeoMesa+support
Tour of the Jupyter (IPython3) notebook — Computational Statistics in Python 0.1 documentation
http://people.duke.edu/~ccc14/sta-663/Jupyter.html
./jove-scala –kernel-spec
How it works
https://toree.incubator.apache.org/documentation/user/how-it-works.html
GitHub - andypetrella/spark-notebook: Interactive and Reactive Data Science using Scala and Spark.
https://github.com/andypetrella/spark-notebook/
jupyter与spark kernel结合的notebook安装及使用 - heng_2218的博客 - 博客频道 - CSDN.NET
http://blog.csdn.net/heng_2218/article/details/51006075