Script Jobs
This job lets you run a custom Scala script in Fusion.
To create a Script job, sign in to Fusion and click Collections > Jobs. Then click Add+ and in the Custom and Others Jobs section, select Script. You can enter basic and advanced parameters to configure the job. If the field has a default value, it is populated when you click to add the job.
Basic parameters
| To enter advanced parameters in the UI, click Advanced. Those parameters are described in the advanced parameters section. |
-
Spark job ID. The unique ID for the Spark job that references this job in the API. This is the
idfield in the configuration file. Required field. -
Scala script. The Scala script to be executed in Fusion as a Spark job. This is the
scriptfield in the configuration file.
Advanced parameters
If you click the Advanced toggle, the following optional fields are displayed in the UI.
-
Spark Settings. This section lets you enter
parameter name:parameter valueoptions to use for Spark configuration. This is thesparkConfigfield in the configuration file. -
Spark shell options. This section lets you enter
parameter name:parameter valueoptions to send to the Spark shell when the job is run. This is theshellOptionsfield in the configuration file. -
Interpreter params. This section lets you enter
parameter name:parameter valueoptions to bind thekey:valuepairs to the Scala interpreter. This is theinterpreterParamsfield in the configuration file.