2024-06-26 19:21:16 +05:30
|
|
|
---
|
|
|
|
title: Run the Flink Connector Externally
|
|
|
|
slug: /connectors/pipeline/flink/yaml
|
|
|
|
---
|
|
|
|
|
|
|
|
{% connectorDetailsHeader
|
|
|
|
name="Flink"
|
|
|
|
stage="BETA"
|
|
|
|
platform="Collate"
|
2025-03-13 13:58:04 +05:30
|
|
|
availableFeatures=["Pipelines", "Pipeline Status", "Usage"]
|
2024-06-26 19:21:16 +05:30
|
|
|
unavailableFeatures=["Owners", "Lineage", "Tags"]
|
|
|
|
/ %}
|
|
|
|
|
|
|
|
|
|
|
|
In this section, we provide guides and references to use the Flink connector.
|
|
|
|
|
|
|
|
Configure and schedule Flink metadata and profiler workflows from the OpenMetadata UI:
|
|
|
|
|
|
|
|
- [Requirements](#requirements)
|
|
|
|
- [Metadata Ingestion](#metadata-ingestion)
|
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/external-ingestion-deployment.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
### Python Requirements
|
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/python-requirements.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
|
|
|
To run the Flink ingestion, you will need to install:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip3 install "openmetadata-ingestion[flink]"
|
|
|
|
```
|
|
|
|
|
|
|
|
## Metadata Ingestion
|
|
|
|
|
|
|
|
### 1. Define the YAML Config
|
|
|
|
|
|
|
|
This is a sample config for Flink:
|
|
|
|
|
|
|
|
{% codePreview %}
|
|
|
|
|
|
|
|
{% codeInfoContainer %}
|
|
|
|
|
|
|
|
#### Source Configuration - Service Connection
|
|
|
|
|
|
|
|
{% codeInfo srNumber=1 %}
|
|
|
|
|
|
|
|
**hostPort**: The hostname or IP address of the Flink Connect worker with the REST API enabled
|
|
|
|
|
|
|
|
{% /codeInfo %}
|
|
|
|
|
|
|
|
{% codeInfo srNumber=2 %}
|
|
|
|
|
|
|
|
**verifySSL**: Whether SSL verification should be perform when authenticating.
|
|
|
|
|
|
|
|
{% /codeInfo %}
|
|
|
|
|
|
|
|
{% codeInfo srNumber=3 %}
|
|
|
|
|
|
|
|
**Flink Connect Config**: OpenMetadata supports SSL config or no Authentication.
|
|
|
|
|
|
|
|
*1. SSL config
|
|
|
|
- caCertificate: Authorized certificate for ssl configured server.
|
|
|
|
- sslCertificate: SSL certificate for the server.
|
|
|
|
- sslKey: Server root key for the connection.
|
|
|
|
{% /codeInfo %}
|
|
|
|
|
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/yaml/pipeline/source-config-def.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/yaml/ingestion-sink-def.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/yaml/workflow-config-def.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
|
|
|
{% /codeInfoContainer %}
|
|
|
|
|
|
|
|
{% codeBlock fileName="filename.yaml" %}
|
|
|
|
|
|
|
|
|
|
|
|
```yaml {% isCodeBlock=true %}
|
|
|
|
source:
|
|
|
|
type: flink
|
|
|
|
serviceName: flink_pipeline_dashboard
|
|
|
|
serviceConnection:
|
|
|
|
config:
|
|
|
|
type: Flink
|
|
|
|
```
|
|
|
|
```yaml {% srNumber=1 %}
|
|
|
|
hostPort: "https://<yourflinkhostport>" # or http://localhost:8083 or http://127.0.0.1:8083
|
|
|
|
```
|
|
|
|
```yaml {% srNumber=2 %}
|
|
|
|
verifySSL: no-ssl
|
|
|
|
```
|
|
|
|
```yaml {% srNumber=3 %}
|
|
|
|
sslConfig:
|
2025-01-17 13:33:10 +05:30
|
|
|
caCertificate: |
|
|
|
|
-----BEGIN CERTIFICATE-----
|
|
|
|
sample certificate
|
|
|
|
-----END CERTIFICATE-----
|
|
|
|
sslCertificate: |
|
|
|
|
-----BEGIN CERTIFICATE-----
|
|
|
|
sample certificate
|
|
|
|
-----END CERTIFICATE-----
|
|
|
|
sslKey: |
|
|
|
|
-----BEGIN PRIVATE KEY-----
|
|
|
|
sample certificate
|
|
|
|
-----END PRIVATE KEY-----
|
2024-06-26 19:21:16 +05:30
|
|
|
```
|
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/yaml/pipeline/source-config.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/yaml/ingestion-sink.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/yaml/workflow-config.md" /%}
|
2024-06-26 19:21:16 +05:30
|
|
|
|
|
|
|
{% /codeBlock %}
|
|
|
|
|
|
|
|
{% /codePreview %}
|
|
|
|
|
2025-01-17 13:33:10 +05:30
|
|
|
{% partial file="/v1.6/connectors/yaml/ingestion-cli.md" /%}
|