Skip to main content
Version 3.0

Providers, Spark, and S3 connection
ready for your DAGs.

Three scenarios: what the Airflow image already ships, the connection to S3-compatible storage, and running Spark from the tasks. Each one covers: the chart default, the block commented line by line, and a step-by-step with verification.

ChartVersion3.0.3TypeapplicationAppVersion3.0.2
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

Airflow DAGs talk to other systems through connections and through the libraries in the image. The image of the tdp-airflow chart ships all the Airflow providers, the packages with the operators and hooks of each system, in addition to Spark and the ClickHouse libraries. The chart writes one connection to S3-compatible storage, enabled in the TDP-Settings.s3Connection block. The metadata database, embedded or external, is covered in Airflow Configuration.

Your environment

If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.

Scenarios​

What the image ships: providers, Spark, ClickHouse and LDAP, ready in the task pods.

Airflow connects to the other components through what ships in the image: the providers and libraries that the tasks use to talk to each system. By default, the image already ships the providers, Spark and the ClickHouse and LDAP libraries, and the chart writes no connection to Airflow. The following tabs cover the connection to S3-compatible storage, such as the Ozone S3 Gateway (scenario 2), and Spark in the tasks, with the Spark History Server (scenario 3).

You are going to write DAGs that talk to other systems and want to know what is already available. The chart's Airflow runs with a TDP image that extends the official Apache Airflow image: it ships all the apache-airflow-providers-* providers, at the versions pinned by the Airflow constraints file, plus TDP extras. The tasks run with this same image, so all of this is already in them. The image ships providers and libraries for Spark, Kafka, Trino, Hive, ClickHouse, S3, Kubernetes and LDAP.

Providers

All the apache-airflow-providers-* from the Airflow constraints file, at the versions it pins.

Spark

PySpark and the Spark distribution, copied from the TDP Spark image, with the Delta, Iceberg and S3 JARs, for spark-submit and for a local SparkSession. Java (OpenJDK 17) comes along. SPARK_HOME is /opt/spark and spark-submit is on the PATH. See scenario 3.

ClickHouse

The Python libraries clickhouse-connect and clickhouse-driver.

LDAP

python-ldap, for login through the directory. See Security - Airflow.

Airflow and the task pods

namespace <NAMESPACE>Airflowscheduler · API ServerTask pods ×3providers · Spark · ClickHouse
  1. Airflow. Orchestrates the DAGs. Each task runs in its own pod, with the same Airflow image. Chart default: KubernetesExecutor. (tdp-airflow.executor)
  2. Task pods. The image ships all the Airflow providers, PySpark with the Spark distribution and Java, and the ClickHouse and LDAP libraries. Chart default: TDP Airflow image. (tdp-airflow.defaultAirflowTag)
With the chart defaults: Airflow and the task pods, with the image that already ships the providers and Spark. Click an element to see what it is.

Of the connections that DAGs use, the chart writes only the one to S3-compatible storage, in scenario 2.

When something goes wrong​

Troubleshooting

Paste the error message or choose the symptom. The answer comes with the cause, what to do and the command.

  1. S3 access denied with Ozone security on. Cause: With Ozone security on, the S3 Gateway only accepts keys issued by the Ozone Manager: an arbitrary pair no longer works. What to do: In the S3 connection, use the aws_access_key_id and aws_secret_access_key keys of the ozone-s3-credentials Secret (scenario 2). In the DAGs' Spark, use the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY variables from that Secret (scenario 3).
  2. Changes made to the S3 connection in the UI disappear. Cause: On every install and upgrade, the chart deletes the connection named in TDP-Settings.s3Connection.name and recreates it with the values from the file. What to do: Change the connection in the values file, not in the UI.
  3. The Spark job does not appear in the History Server. Cause: The driver that runs in the Airflow task does not write the event logs to the directory that the History Server reads. What to do: Set spark.eventLog.enabled and spark.eventLog.dir in the driver's Spark configuration (scenario 3).
  4. Another problem. Cause: Start with the state of the pods and the namespace events. What to do: The events in time order show what keeps the pod or the Job from running.

Integration parameters​

These keys sit at the root of the values file, without the chart prefix.

7 of 7 parameters

ParameterDescriptionChart default
TDP-Settings.s3Connection.enabledS3 connectionCreates the Secret and writes the S3 connection to Airflowfalse
TDP-Settings.s3Connection.secretNameS3 connectionName of the Secret with the connection parameterstdp-airflow-minio-connection
TDP-Settings.s3Connection.nameS3 connectionName of the connection in Airflow<s3-connection-name>
TDP-Settings.s3Connection.typeS3 connectionType of the connection in Airflowaws
TDP-Settings.s3Connection.accessKeyS3 connectionS3 access key<s3-access-key>
TDP-Settings.s3Connection.secretKeyS3 connectionS3 secret key""
TDP-Settings.s3Connection.uriS3 connectionS3-compatible endpoint, written as the connection's endpoint_urlhttps://<s3-endpoint>

Next steps​