A master URL must be set in your configuration
来源:互联网 发布:大庆seo推广 编辑:程序博客网 时间:2024/05/07 02:20
解决A master URL must be set in your configuration错误
spark的测试程序SparkPi时,点击运行,出现了如下错误:
Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configuration
at org.apache.spark.SparkContext.<init>(SparkContext.scala:185)
at SparkPi$.main(SparkPi.scala:12)
at SparkPi.main(SparkPi.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
传递给spark的master url可以有如下几种:
local 本地单线程
local[K] 本地多线程(指定K个内核)
local[*] 本地多线程(指定所有可用内核)
spark://HOST:PORT 连接到指定的 Spark standalone cluster master,需要指定端口。
mesos://HOST:PORT 连接到指定的 Mesos 集群,需要指定端口。
yarn-client客户端模式 连接到 YARN 集群。需要配置 HADOOP_CONF_DIR。yarn-cluster集群模式 连接到 YARN 集群。需要配置 HADOOP_CONF_DIR。
点击edit configuration,在左侧点击该项目。在右侧VM options中输入“-Dspark.master=local”,指示本程序本地单线程运行,再次运行即可。
配置如图:
- 解决A master URL must be set in your configuration
- A master URL must be set in your configuration
- 解决A master URL must be set in your configuration错误
- org.apache.spark.SparkException: A master URL must be set in your configuration
- 异常解决:A master URL must be set in your configuration
- A master URL must be set in your configuration at org.apache.spark.SparkContext.<init>(SparkContext.
- 解决A master URL must be set in your configuration错误
- 运行 Spark错误 A master URL must be set in your configuration
- IDEA中如果报org.apache.spark.sparkException: A master URL must be set in your configuration
- exception in thread main org.apache.spark.sparkexception:A master URL must be set in your
- exception in thread main org.apache.spark.sparkexception:A master URL must be set in your
- spark学习- SparkSQL--08-org.apache.spark.SparkException: A master URL must be set in your config
- All routing maps in a partition scheme must also be listed on a line in the configuration file.
- Where a configuration setting may be set
- In-App Purch - Your first In-App Purchase(s) must be submitted with a new app version...问题解决方案
- Google App Engine问题之Your project must be configured to use a JDK in order to use JSPs
- SOPC_BUILDER_PATH may be incorrectly set in your environment
- Jekyll:解决Auto-regeneration can no longer be set from your configuration file(s)
- windows下sass的安装使用,及在webstrom中配置
- MatLab与线性代数001
- 博客小记
- python-----------根据企业利润求奖金
- JQuery文档
- A master URL must be set in your configuration
- 数据结构实验之查找一:二叉排序树
- 蓝桥杯 算法训练 旅行家的预算
- mybatis 返回Map类型key改为小写
- 【Android
- javascript中的location.href多种用法
- Java中String,StringBuffer,StringBuilder区别与联系
- 阿里数据库内核月报:2017年06月
- jboss-as-7.1.1.Final安装部署