我使用 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 版。
我可以查看清单。猫清单文件
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格式问题吗?