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-airflow-example-components-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. '
Elyra example components for Kubeflow
'. - (Optional) Specify a category under which the example components will be organized in the palette.
- 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
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-airflow-example-components-catalog
package.$ pip uninstall -y elyra-airflow-example-components-catalog
Q: No example components are displayed in the Visual Pipeline Editor palette.
A: Verify that you imported the examples for the correct runtime environment and check the JupyterLab log file for error messages.