This is the entry point for a Spark Job Server to execute Python jobs.
This is the entry point for a Spark Job Server to execute Python jobs. It calls a Python subprocess to execute the relevant Python Job class.
a SparkContext or similar for the job. May be reused across jobs.
the JobEnvironment containing run time information pertaining to the job and context.
not used for Python jobs
the job result
To support a useful validate method here for Python jobs we would have call two python processes, one for validate and one for runJob.
To support a useful validate method here for Python jobs we would have call two python processes,
one for validate and one for runJob. However this is inefficient and it would mean having to convert
JobData into a Java Object and then back out to a Python Object for runJob
.
So for Python Jobs this simply returns indicating the job is valid. Validation by the underlying Python class will be performed within the subprocess called during runJob.
a SparkContext or similar for the job. May be reused across jobs.
the JobEnvironment containing run time information pertaining to the job and context.
the Typesafe Config object passed into the job request
Always returns the jobConfig, so it will be passed on to runJob as the job data.