gpt4 book ai didi

spark-jobserver - Spark 作业服务器不断收到无效的 Jar

转载 作者:行者123 更新时间:2023-12-04 22:04:02 25 4
gpt4 key购买 nike

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

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 版。

我能够查看 list 。
猫 list .MF
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 格式问题吗?

最佳答案

在 jar 文件路径前放置一个@,如下所示:

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

关于spark-jobserver - Spark 作业服务器不断收到无效的 Jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33558408/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com