我在spark-jobserver directory中添加了一个新的代码文件以及现有的示例文件,并创建了一个.jar。即使成功上载jar文件,它也会引发以下错误。
F:\Soft\spark\Projects\spark-jobserver-master_1\spark-jobserver-master>curl --data-binary @job-server-tests/target/scala-2.10/job-server-tests_2.10-0.7.1-SNAPSHOT.jar localhost:8090/jars/test
{
"status": "SUCCESS",
"result": "Jar uploaded"
}
F:\Soft\spark\Projects\spark-jobserver-master_1\spark-jobserver-master>curl -d "input.string = SamsungJ7Prime16GBGold" "localhost:8090/jobs?appName=test&classPath=spark.jobserver.ViewsRecommender"
{
"status": "ERROR",
"result": "classPath spark.jobserver.ViewsRecommender not found"
}
虽然上面的命令失败,但当我从同一个jar中调用另一个类时,它成功运行,如下所示,
F:\Soft\spark\Projects\spark-jobserver-master_1\spark-jobserver-master>curl -d "input.string = a b c a b see" "localhost:8090/jobs?appName=test&classPath=spark.jobserver.WordCountExample"
{
"duration": "Job not done yet",
"classPath": "spark.jobserver.WordCountExample",
"startTime": "2017-04-14T16:04:17.480+05:30",
"context": "1ab9cf56-spark.jobserver.WordCountExample",
"status": "STARTED",
"jobId": "d177eefb-0642-442a-a650-9c0a07ad6400"
}
我有raised an issue in the github repository并附上.jar文件。