Azure Synapse Operators¶
Azure Synapse Analytics is a limitless analytics service that brings together data integration, enterprise data warehousing and big data analytics. It gives you the freedom to query data on your terms, using either serverless or dedicated options—at scale. Azure Synapse brings these worlds together with a unified experience to ingest, explore, prepare, transform, manage and serve data for immediate BI and machine learning needs.
AzureSynapseRunSparkBatchOperator¶
Use the AzureSynapseRunSparkBatchOperator
to execute a
spark application within Synapse Analytics.
By default, the operator will periodically check on the status of the executed Spark job to
terminate with a “Succeeded” status.
Below is an example of using this operator to execute a Spark application on Azure Synapse.
run_spark_job = AzureSynapseRunSparkBatchOperator( task_id="run_spark_job", spark_pool="provsparkpool", payload=SPARK_JOB_PAYLOAD # type: ignore )