【发布时间】:2020-04-13 08:25:07
【问题描述】:
我使用以下参数在 azure 上创建了一个 HDInsight 群集:
Spark 2.4 (HDI 4.0)
我用 PySpark Jupyter Notebook 尝试了HDInsights for Apache Spark 的教程,效果很好。 但是自从我第二次重新运行笔记本或启动新的笔记本后,运行简单
from pyspark.sql import *
或其他命令,它们都以
结尾The code failed because of a fatal error:
Session 7 did not start up in 180 seconds..
Some things to try:
a) Make sure Spark has enough available resources for Jupyter to create a Spark context. For instructions on how to assign resources see http://go.microsoft.com/fwlink/?LinkId=717038
b) Contact your cluster administrator to make sure the Spark magics library is configured correctly.
在此之后,我还尝试了使用 ssh 的 pyspark。当我通过 ssh 连接到集群并运行时
$ pyspark
显示以下信息
SPARK_MAJOR_VERSION is set to 2, using Spark2
Python 2.7.12 |Anaconda custom (64-bit)| (default, Jul 2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
然后卡在那里。
我想知道我是否错过了任何手术?或者它是一个错误或什么的。我该如何解决这个问题?
【问题讨论】:
标签: azure apache-spark pyspark jupyter-notebook azure-hdinsight