IntelliJ IDEA 首次运行SparkPi遇到问题

问题1:apache

在运行spark的测试程序SparkPi时,点击运行,出现了以下错误:测试

Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configurationspa

点击edit configuration,在左侧点击该项目。在右侧VM options中输入“-Dspark.master=local”,指示本程序本地单线程运行,再次运行便可。线程

配置如图orm

相关文章
相关标签/搜索