首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spark作业服务器不断获取无效Jar

Spark作业服务器不断获取无效Jar
EN

Stack Overflow用户
提问于 2015-11-06 10:20:51
回答 1查看 1.2K关注 0票数 4

我使用sbt job-server-api/packages和sbt job-server-test/package进行了构建。我可以使用jar -cxf命令扩展/解压缩jar

代码语言:javascript
复制
curl --data-binary /opt/hadoop/spark-jobserver/job-server-api/target/scala-2.10/job-server-api_2.10-0.6.1-SNAPSHOT.jar localhost:8090/jars/test
{
  "status": "ERROR",
  "result": "Jar is not of the right format"
}


 curl --data-binary /opt/hadoop/spark-jobserver/job-server-tests/target/scala-2.10/job-server-tests_2.10-0.6.1-SNAPSHOT.jar localhost:8090/jars/test
{
  "status": "ERROR",
  "result": "Jar is not of the right format"
}

sbt version
[info] Loading project definition from /opt/hadoop/spark-jobserver/project
Missing bintray credentials /root/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /root/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /root/.bintray/.credentials. Some bintray features depend on this.
Missing bintray credentials /root/.bintray/.credentials. Some bintray features depend on this.
[info] Set current project to root (in build file:/opt/hadoop/spark-jobserver/)
[info] job-server-tests/*:version
[info]  0.6.1-SNAPSHOT
[info] job-server-extras/*:version
[info]  0.6.1-SNAPSHOT
[info] job-server-api/*:version
[info]  0.6.1-SNAPSHOT
[info] akka-app/*:version
[info]  0.6.1-SNAPSHOT
[info] job-server/*:version
[info]  0.6.1-SNAPSHOT
[info] root/*:version
[info]  0.6.1-SNAPSHOT

我使用的是SPARK版本1.5。

我可以查看清单。cat MANIFEST.MF

代码语言:javascript
复制
Manifest-Version: 1.0
Implementation-Vendor: spark.jobserver
Implementation-Title: job-server-tests
Implementation-Version: 0.6.1-SNAPSHOT
Implementation-Vendor-Id: spark.jobserver
Specification-Vendor: spark.jobserver
Specification-Title: job-server-tests
Implementation-URL: https://github.com/spark-jobserver/spark-jobserver
Specification-Version: 0.6.1-SNAPSHOT

你能帮我解决jar格式的问题吗?

EN

回答 1

Stack Overflow用户

发布于 2015-11-17 19:06:30

将@放在jar文件路径前,如下所示:

代码语言:javascript
复制
curl --data-binary @/opt/hadoop/spark-jobserver/job-server-api/target/scala-2.10/job-server-api_2.10-0.6.1-SNAPSHOT.jar localhost:8090/jars/test
票数 14
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33558408

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档