Spark Job Server Keep Getting Invalid Jar

I did the build using sbt job-server-api / packages and sbt job-server-tests / packages. I can expand / decompress the jar with the jar -cxf command

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

I am using SPARK version 1.5.

I can view the manifest. cat MANIFEST.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

Can you help me solve a jar formatting problem here?

+4
source share
1 answer

Place the @ file before the jar file, as shown below:

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
source

Source: https://habr.com/ru/post/1614672/


All Articles