@InterfaceAudience.Private public interface SparkClient extends Serializable
Modifier and Type | Method and Description |
---|---|
Future<?> |
addFile(URI uri)
Adds a file to the running remote context.
|
Future<?> |
addJar(URI uri)
Adds a jar file to the running remote context.
|
Future<Integer> |
getDefaultParallelism()
Get default parallelism.
|
Future<Integer> |
getExecutorCount()
Get the count of executors.
|
<T extends Serializable> |
run(Job<T> job)
Asks the remote context to run a job immediately.
|
void |
stop()
Stops the remote context.
|
<T extends Serializable> |
submit(Job<T> job)
Submits a job for asynchronous execution.
|
<T extends Serializable> JobHandle<T> submit(Job<T> job)
job
- The job to execute.<T extends Serializable> Future<T> run(Job<T> job)
JobContext#monitor()
functionality is not available when using this method.job
- The job to execute.void stop()
Future<?> addJar(URI uri)
uri
- The location of the jar file.Future<?> addFile(URI uri)
uri
- The location of the file.Copyright © 2017 The Apache Software Foundation. All rights reserved.