Skip to main content

IometeOperator Reference

IometeOperator submits an existing IOMETE Spark job and monitors its run from an Airflow task. Complete Getting Started with Airflow before using this reference.

Parameters​

ParameterTypeRequiredDefaultDescription
task_idstrYes—Unique identifier for the task in the DAG.
job_idstrYes—IOMETE Spark job ID or name.
hoststrYes—IOMETE platform URL.
domainstrYes—IOMETE domain identifier.
access_tokenstrOne token option—Personal access token passed as a raw string. This field is not templatable.
access_token_variablestrOne token option—Name of an Airflow Variable containing the token. The plugin resolves it when the task runs.
host_verifyboolNoTrueVerifies the IOMETE host's TLS certificate.
config_overridedict or strNo{}Overrides arguments, environment variables, or Spark configuration for this run.
polling_period_secondsintNo10Seconds between job status checks.
do_xcom_pushboolNoFalsePushes job_id and job_run_id to XCom.

Set either access_token or access_token_variable, never both.

Template Fields​

Airflow applies Jinja templating to:

  • job_id
  • config_override
  • host
  • domain
  • access_token_variable

The raw access_token field is intentionally excluded because Airflow stores rendered fields in its metadata database and displays them in the UI.

Configuration Overrides​

config_override accepts a dictionary or JSON string with these optional fields:

{
"arguments": ["arg1", "arg2"],
"envVars": {
"key": "value"
},
"sparkConf": {
"spark.example.variable": "sample_value"
}
}

See DAG Examples for a templated runtime override.

Job Run States​

StateDescriptionFinal?
ENQUEUEDJob is queued.No
SUBMITTEDJob is being deployed.No
RUNNINGJob is running.No
COMPLETEDJob completed successfully.Yes
FAILEDJob failed.Yes
ABORTEDJob was cancelled.Yes
ABORTINGJob cancellation is in progress.No

A FAILED or ABORTED run raises an AirflowException. If the Airflow task is killed, the operator cancels the active IOMETE job run.

XCom Values​

When do_xcom_push=True, the operator publishes:

KeyDescription
job_idValue passed to the operator's job_id parameter, which is either the job's ID or its name.
job_run_idID of the specific job run.

See Passing Run Details with XCom for usage.