Questions tagged [spark-jobserver]

spark-jobserver provides a RESTful interface for submitting and managing Apache Spark jobs, jars, and job contexts.

Reference: https://github.com/spark-jobserver/spark-jobserver

RealTime Example: https://nishutayaltech.blogspot.com/2016/05/how-to-run-spark-job-server-and-spark.html

165 questions
1
vote
1 answer

Spark 2.1.1 with property spark.akka.threads = 12

I'm using Apache Spark 2.1.1 and Spark JobServer Spark 2.0 Preview. I'm seeing on the spark UI Environment tab that there is a config property spark.akka.threads = 12 but in the documentation of Spark 2.1.1 Configuration this parameter doesn't…
1
vote
1 answer

Error while compiling spark-jobserver

While refreshing my SBT project in IntelliJ IDEA, I am facing the following error: Error:Error while importing SBT project:
...
[warn] Credentials file C:\Users\usr\.bintray\.credentials does not exist
[warn] Credentials file…
vatsal mevada
  • 5,148
  • 7
  • 39
  • 68
1
vote
0 answers

Parallelism in Spark Job server

We are working on Qubole with Spark version 2.0.2. We have a multi-step process in which all the intermediate steps write their output to HDFS and later this output is used in the reporting layer. As per our use case, we want to avoid writing to…
1
vote
1 answer

Spark and Spark JobServer best practice to avoid of expensive reconstruction objects in each call of runJob(sc: SparkContext, config: Config)

Every-time invoke JobServer runJob API below, I have a time-cost logic to construct an object repeatedly inside the runJob call runJob(sc: SparkContext, config: Config) What is the best practice to store the object in memory to avoid repeat…
Tom
  • 83
  • 8
1
vote
2 answers

java.lang.UnsatisfiedLinkError: no mesos in java.library.path

I am trying to configure spark job-sever for Mesos cluster deployment mode. I have set spark.master = "mesos://mesos-master:5050" in jobserver config. When I am trying to create a context on job-server, it is failing with the following…
vatsal mevada
  • 5,148
  • 7
  • 39
  • 68
1
vote
0 answers

classPath spark.jobserver. not found

I have added a new code file along with the existing example files in the spark-jobserver directory and created a .jar. It throws the following error even after the jar file is uploaded…
SoakingHummer
  • 562
  • 1
  • 7
  • 25
1
vote
0 answers

Spark job server starts but shows error (in akka.util.Helpers)

I have deployed spark job server (version 0.6.2) on a remote machine running a YARN cluster using Cloudera (version 5.8.2). Followed the instructions given here. After deploying, when I tried to start the server, I got the following…
user6904842
1
vote
1 answer

How to run sqlContext in the spark-jobserver

I'm trying to execute locally a job in the spark-jobserver. My application has the dependencies below: name := "spark-test" version := "1.0" scalaVersion := "2.10.6" resolvers += Resolver.jcenterRepo libraryDependencies += "org.apache.spark" %%…
vallim
  • 308
  • 2
  • 12
1
vote
0 answers

Use Persistent Context Mode in Spark Job Server with Java

I want to use the Machine Learning capabilities of Apache Spark through a RESTful API. Therefore I use the Spark Job Server. I already developed an interface for the communication but figured out that, while I am using the Persistent Context Mode, I…
Creidann
  • 11
  • 2
1
vote
1 answer

How to run multiple on demand jobs on same spark context

I want to run different jobs on demand with same spark context, but i don't know how exactly i can do this. I try to get current context, but seems it create a new spark context(with new executors). I call spark-submit to add new jobs. I run code on…
Cosmin
  • 676
  • 7
  • 15
1
vote
1 answer

Listener to get Job status from Spark Job Server

I am making rest requests to query Spark Job Server to get the status of the job. The code looks like below : private Future getJobResultFuture(String jobId) { ExecutorService executorService =…
eatSleepCode
  • 4,427
  • 7
  • 44
  • 93
1
vote
1 answer

Spark job-server release memory

I've set up a spark job-server (see https://github.com/spark-jobserver/spark-jobserver/tree/jobserver-0.6.2-spark-1.6.1) in standalone mode. I've created a default context to use. Currently I have 2 kind of jobs on this context: Synchronization…
Marco Fedele
  • 2,090
  • 2
  • 25
  • 45
1
vote
1 answer

Error while submitting a spark job using spark-jobserver

I face following error occasionally while submitting job. This error goes away if I remove the rootdir of filedao, datadao and sqldao. That means I have to restart the job-server and re-upload my jar. { "status": "ERROR", "result": { …
vatsal mevada
  • 5,148
  • 7
  • 39
  • 68
1
vote
1 answer

Error while building Spark-jobserver

unresolved dependency: com.ning#async-http-client;1.8.10: org.sonatype.oss#oss-parent;9!oss-parent.pom(pom.original) origin location must be absolute: file: at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:313) at…
1
vote
2 answers

In Spark JobServer. How to pass a json formated string on the input.string?

Im trying to execute the following curl command to run a job: curl -k --basic --user 'user:psw' -d 'input.string= {"user":13}' 'https://localhost:8090/jobs?appName=test&classPath=test.ImportCSVFiles&context=import&sync=true' But I get the following…