@InterfaceAudience.Private public interface JobContext
Modifier and Type | Method and Description |
---|---|
List<String> |
getAddedJars()
Return all added jar path which added through AddJarJob.
|
File |
getLocalTmpDir()
Returns a local tmp dir specific to the context
|
Map<String,List<org.apache.spark.api.java.JavaFutureAction<?>>> |
getMonitoredJobs()
Return a map from client job Id to corresponding JavaFutureActions.
|
<T> org.apache.spark.api.java.JavaFutureAction<T> |
monitor(org.apache.spark.api.java.JavaFutureAction<T> job,
SparkCounters sparkCounters,
Set<Integer> cachedRDDIds)
Monitor a job.
|
org.apache.spark.api.java.JavaSparkContext |
sc()
The shared SparkContext instance.
|
org.apache.spark.api.java.JavaSparkContext sc()
<T> org.apache.spark.api.java.JavaFutureAction<T> monitor(org.apache.spark.api.java.JavaFutureAction<T> job, SparkCounters sparkCounters, Set<Integer> cachedRDDIds)
Map<String,List<org.apache.spark.api.java.JavaFutureAction<?>>> getMonitoredJobs()
File getLocalTmpDir()
Copyright © 2017 The Apache Software Foundation. All rights reserved.