February 2022:
- The example operators that this connector provides will no longer be updated.
- Please upgrade Elyra to version 3.7 (or above) and use the two built-in connectors instead.
- Use the built-in catalog connector for Apache Airflow packages to add Apache Airflow built-in operators to your visual pipeline editor.
- Use the built-in catalog connector for Apache Airflow provider packages to add Apache Airflow community provider operators to your visual pipeline editor.
This catalog connector provides access to example pipeline components for Apache Airflow.
You can install the component examples from PyPI or source code. Note that a rebuild of JupyterLab is not required.
Prerequisites
- Install Elyra (version 3.3 and above).
Install from PyPI
$ pip install elyra-examples-airflow-catalog
Install from source code
$ git clone https://github.com/elyra-ai/examples.git
$ cd examples/component-catalog-connectors/airflow-example-components-connector/
$ make clean source-install
- Launch JupyterLab.
- Open the '
Manage Components
' panel. - Add a new component examples catalog ('
+
' > 'New Apache Airflow example components catalog
'). - Specify a catalog name, e.g. '
Example components for Apache Airflow
'. - Save the catalog entry.
- Open the Visual Pipeline Editor for Apache Airflow and expand the palette. The example components are displayed.
This connector utilizes an embedded catalog as storage and is therefore a static catalog. To customize the catalog content according to your needs:
- Clone or fork the
https://github.com/elyra-ai/examples
repository. - Navigate to the
examples/component-catalog-connectors/airflow-example-components-connector/airflow_examples_connector/resources
directory. This directory contains the Apache Airflow operators that this connector makes available to Elyra. Note that the operator packages must be installed on the Apache Airflow cluster, or DAG execution will fail. - Change the content of this directory as desired.
- Install the customized connector from source.
- Remove all example catalog entries from the '
Manage Components
' panel. - Stop JupyterLab.
- Uninstall the
elyra-examples-airflow-catalog
package.$ pip uninstall -y elyra-examples-airflow-catalog
Q: No example components are displayed in the Visual Pipeline Editor palette.
A: Check the JupyterLab log file for error messages.