Spark job subtypes
For the Spark job type, the available subtypes are listed below.- Aggregation
Define an aggregation job. - Custom Spark job
Run a custom Spark job. - Script
Run a custom Scala script as a Fusion job.
Additional Spark jobs are available with a Fusion AI license.
Spark Configuration Properties
Fusion passes all configuration properties with prefix “spark.” to the Spark master, Spark worker and each Spark application, both for aggregation jobs and custom-scripted processing. These properties are stored in Fusion’s ZooKeeper and can be updated via requests to Fusion endpointapi/configurations
which will update the stored value without restarting the service, therefore existing jobs and SparkContexts will not be affected.
The Fusion endpoint api/configurations returns all configured properties for that installation.
You can examine spark default configurations in a Unix shell using the utilities curl and grep.
Here is an example that checks a local Fusion installation running on port 8764:
key/value objects in the sparkConfig property
of a script job configuration, which takes precedence over values stored in ZooKeeper.
The following is an example of a scripted job with a sparkConfig section: