如何使用YARN客户端模式在Jupyter中交互运行Pyspark? [英] How can I run Pyspark interactively in Jupyter using YARN-client mode?
本文介绍了如何使用YARN客户端模式在Jupyter中交互运行Pyspark?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Now I have succeeded in running Pyspark in Jupyter in local mode by the second method as mentioned in this blog. Here is the code:
import findspark
findspark.init()
from pyspark import SparkContext
sc = SparkContext("local", "First App")
我想在YARN客户端模式下交互式运行它,该怎么办? 让我们进一步,如何在独立模式和YARN群集模式下运行.
I want to run it interactively in YARN-client mode,how can I do it? Let's go futher,how to run in different modes,e.g.standalone mode and YARN-cluster mode.
推荐答案
查看全文