- PySpark Cookbook
- Denny Lee Tomasz Drabas
- 122字
- 2021-06-18 19:06:32
There's more...
Now that you have Jupyter on your machine, and assuming you followed the steps of either the Installing Spark from sources or the Installing Spark from binaries recipes, you should be able to start using Jupyter to interact with PySpark.
To refresh your memory, as part of installing Spark scripts, we have appended two environment variables to the bash profile file: PYSPARK_DRIVER_PYTHON and PYSPARK_DRIVER_PYTHON_OPTS. Using these two environment variables, we set the former to use jupyter and the latter to start a notebook service.
If you now open your Terminal and type:
pyspark
When you open your browser and navigate to http://localhost:6661, you should see a window not that different from the one in the following screenshot:

推薦閱讀
- DB2 V9權威指南
- Learn Blockchain Programming with JavaScript
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- Mastering OpenCV Android Application Programming
- Building a Home Security System with Raspberry Pi
- Vue.js 2 and Bootstrap 4 Web Development
- Python Deep Learning
- Raspberry Pi Home Automation with Arduino(Second Edition)
- Android Wear Projects
- 打開Go語言之門:入門、實戰與進階
- Swift語言實戰晉級
- Java Hibernate Cookbook
- Python應用開發技術
- SCRATCH編程課:我的游戲我做主
- Spring Boot從入門到實戰