Error : Must specify a primary resource (JAR or python or R file)

spark-submit 报错:must specify resource

取消关注 | 1

...

我的submit.sh内容:

/bin/spark-submit \

--class abc.package.manclass \

--master spark:10.30.40.50:7077 \

--executor-memory 2g

/home/abc/abc.jar

然后报错,Error : Must specify a primary resource (JAR or python or R file)

问题被我解决了。

主要是包没打好。scala中需要先建一个package.然后再建一个object.

上面的shell中要加一个\

在--executor-memory 2g \

后面

时间: 2024-10-03 07:15:53

Error : Must specify a primary resource (JAR or python or R file)的相关文章

ERROR 1105 (HY000): A PRIMARY KEY must include all columns in the table's partitioning function

ERROR 1105 (HY000): A PRIMARY KEY must include all columns in the table's partitioning function CREATE TABLE `sample` (  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',  `trade_no` varchar(32) NOT NULL COMMENT 'xxx',  `trade_type` varchar(32) D

Error Code: 1068. Multiple primary key defined

1.错误描述 10:10:38 alter table user add num int(8) primary key first Error Code: 1068. Multiple primary key defined 0.000 sec 2.错误原因 这个错误的原因是定义了两个主键,导致出错 3.解决办法 alter table user add num int(8) primary key first; 去掉"primary key"

(maven项目)使用java -jar命令遇到的小问题|xx.jar中没有主清单或Error:Invalid or corrupt jarfile xx.jar

xx.jar中没有主清单或Error:Invalid or corrupt jarfile xx.jar 遇到这个问题,是因为你的jar包没有设置主类的入口. 即在META-INF文件夹的MANIFEST.MF文件中没有定义Main-Class: packageName.className(此处Main-Class:与 packageName.className之间有一个空格并且一行结束后有换行符) 我们可以用winrar打开你导出jar包(不用解压),在META-INF文件夹中找到MANIFE

Nginx错误:nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified)

执行nginx -s reload命令: nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified) 错误原因: Nginx 尚未启动导致,执行 start nginx 命令开启Nginx

运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory

运行编译后的程序报错  error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory -------------------------------------------------------------------------------------------------------------------------------------

error: while loading shared libraries : countlib.so : cannnot open shared object file : No such fil

问题内容: error: while loading shared libraries : countlib.so : cannnot open shared object file : No such file or directory 我们找不到文件 或目录 解决方法: sudo cp countlib.so  /usrr/lib/

./ProjectC: error while loading shared libraries: libProjectC.so: cannot open shared object file: No such file or directory

时间: 2014-7-20   11:30 地点: andon 问题: 研究xu库文件的创建,编译-链接通过后,执行文件时./ProjectC 不能打开动态链接库 解决:makefile文件中,库文件 libProjectC.so已经添加到./install中,但还是报错 #lib directory         LIBDIR = -L ./         LIBDIR = -L ../install #lib which the link program need         LIB

YumRepo Error: All mirror URLs are not using ftp, http[s] or file

有台机器使用Yum的时候,报错如下: YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. $releasever is not a valid release or hasnt been released yet/removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txtError: Cannot retriev

maven error: 用maven下载的spring jar包出现该异常 cannot be read or is not a valid ZIP file

使用maven获取相关的依赖jar包时,出现异常:Archive for required library: 'D:/maven/repository/org/springframework/spring-context/4.0.0.RELEASE/ in project 'webmvc' cannot be read or is not a valid ZIP file 但是我去相关的目录找到了相关的jar包,但是IDE中仍然报错:在搜索引擎上找到了一个处理的方法,就是将该jar包的上一级目录