Skip to content

Commit 0373070

Browse files
authored
Platform: Kafka source and destination connectors (#421)
1 parent 257b8bf commit 0373070

File tree

18 files changed

+231
-11
lines changed

18 files changed

+231
-11
lines changed

mint.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@
487487
"platform/sources/elasticsearch",
488488
"platform/sources/google-cloud",
489489
"platform/sources/google-drive",
490+
"platform/sources/kafka",
490491
"platform/sources/mongodb",
491492
"platform/sources/onedrive",
492493
"platform/sources/outlook",
@@ -507,6 +508,7 @@
507508
"platform/destinations/delta-table",
508509
"platform/destinations/elasticsearch",
509510
"platform/destinations/google-cloud",
511+
"platform/destinations/kafka",
510512
"platform/destinations/milvus",
511513
"platform/destinations/mongodb",
512514
"platform/destinations/neo4j",
@@ -536,6 +538,7 @@
536538
"platform/api/sources/elasticsearch",
537539
"platform/api/sources/google-cloud",
538540
"platform/api/sources/google-drive",
541+
"platform/api/sources/kafka",
539542
"platform/api/sources/mongodb",
540543
"platform/api/sources/onedrive",
541544
"platform/api/sources/outlook",
@@ -556,6 +559,7 @@
556559
"platform/api/destinations/delta-table",
557560
"platform/api/destinations/elasticsearch",
558561
"platform/api/destinations/google-cloud",
562+
"platform/api/destinations/kafka",
559563
"platform/api/destinations/milvus",
560564
"platform/api/destinations/mongodb",
561565
"platform/api/destinations/neo4j",
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Kafka
3+
---
4+
5+
Send processed data from Unstructured to Kafka.
6+
7+
The requirements are as follows.
8+
9+
import KafkaPrerequisites from '/snippets/general-shared-text/kafka.mdx';
10+
11+
<KafkaPrerequisites />
12+
13+
To create or change a Kafka destination connector, see the following examples.
14+
15+
import KafkaAPIRESTCreate from '/snippets/destination_connectors/kafka_rest_create.mdx';
16+
import KafkaAPIRESTChange from '/snippets/destination_connectors/kafka_rest_change.mdx';
17+
18+
<CodeGroup>
19+
<KafkaAPIRESTCreate />
20+
<KafkaAPIRESTChange />
21+
</CodeGroup>
22+
23+
Replace the preceding placeholders as follows:
24+
25+
import KafkaAPIPlaceholders from '/snippets/general-shared-text/kafka-api-placeholders.mdx';
26+
27+
<KafkaAPIPlaceholders />
28+
29+
To change a connector, replace `<connector-id>` with the source connector's unique ID.
30+
To get this ID, see [List source connectors](/platform/api/overview#list-source-connectors).

platform/api/destinations/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ For the list of specific settings, see:
2020
- [Delta Table](/platform/api/destinations/delta-table) (`destination_type=delta_table`)
2121
- [Elasticsearch](/platform/api/destinations/elasticsearch) (`destination_type=elasticsearch`)
2222
- [Google Cloud Storage](/platform/api/destinations/google-cloud) (`destination_type=gcs`)
23+
- [Kafka](/platform/api/destinations/kafka) (`destination_type=kafka-cloud`)
2324
- [Milvus](/platform/api/destinations/milvus) (`destination_type=milvus`)
2425
- [MongoDB](/platform/api/destinations/mongodb) (`destination_type=mongodb`)
2526
- [Neo4j](/platform/api/destinations/neo4j) (`destination_type=neo4j`)

platform/api/sources/kafka.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Kafka
3+
---
4+
5+
Ingest your files into Unstructured from Kafka.
6+
7+
The requirements are as follows.
8+
9+
import KafkaPrerequisites from '/snippets/general-shared-text/kafka.mdx';
10+
11+
<KafkaPrerequisites />
12+
13+
To create or change a Kafka source connector, see the following examples.
14+
15+
import KafkaAPIRESTCreate from '/snippets/source_connectors/kafka_rest_create.mdx';
16+
import KafkaAPIRESTChange from '/snippets/source_connectors/kafka_rest_change.mdx';
17+
18+
<CodeGroup>
19+
<KafkaAPIRESTCreate />
20+
<KafkaAPIRESTChange />
21+
</CodeGroup>
22+
23+
Replace the preceding placeholders as follows:
24+
25+
import KafkaAPIPlaceholders from '/snippets/general-shared-text/kafka-api-placeholders.mdx';
26+
27+
<KafkaAPIPlaceholders />
28+
29+
To change a connector, replace `<connector-id>` with the source connector's unique ID.
30+
To get this ID, see [List source connectors](/platform/api/overview#list-source-connectors).

platform/api/sources/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ For the list of specific settings, see:
2121
- [Elasticsearch](/platform/api/sources/elasticsearch) (`source_type=elasticsearch`)
2222
- [Google Cloud Storage](/platform/api/sources/google-cloud) (`source_type=gcs`)
2323
- [Google Drive](/platform/api/sources/google-drive) (`source_type=google_drive`)
24+
- [Kafka](/platform/api/sources/kafka) (`source_type=kafka-cloud`)
2425
- [MongoDB](/platform/api/sources/mongodb) (`source_type=mongodb`)
2526
- [OneDrive](/platform/api/sources/onedrive) (`source_type=onedrive`)
2627
- [Outlook](/platform/api/sources/outlook) (`source_type=outlook`)

platform/connectors.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The Unstructured Platform supports connecting to the following source and destin
1919
- [Elasticsearch](/platform/sources/elasticsearch)
2020
- [Google Cloud Storage](/platform/sources/google-cloud)
2121
- [Google Drive](/platform/sources/google-drive)
22+
- [Kafka](/platform/sources/kafka)
2223
- [MongoDB](/platform/sources/mongodb)
2324
- [OneDrive](/platform/sources/onedrive)
2425
- [Outlook](/platform/sources/outlook)
@@ -41,6 +42,7 @@ If your source is not listed here, you might still be able to connect Unstructur
4142
- [Delta Table](/platform/destinations/delta-table)
4243
- [Elasticsearch](/platform/destinations/elasticsearch)
4344
- [Google Cloud Storage](/platform/destinations/google-cloud)
45+
- [Kafka](/platform/destinations/kafka)
4446
- [Milvus](/platform/destinations/milvus)
4547
- [MongoDB](/platform/destinations/mongodb)
4648
- [Neo4j](/platform/destinations/neo4j)

platform/destinations/kafka.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Kafka
3+
---
4+
5+
Send processed data from Unstructured to Kafka.
6+
7+
The requirements are as follows.
8+
9+
import KafkaPrerequisites from '/snippets/general-shared-text/kafka.mdx';
10+
11+
<KafkaPrerequisites />
12+
13+
To create the destination connector:
14+
15+
1. On the sidebar, click **Connectors**.
16+
2. Click **Destinations**.
17+
3. Cick **New** or **Create Connector**.
18+
4. Give the connector some unique **Name**.
19+
5. In the **Provider** area, click **Kafka**.
20+
6. Click **Continue**.
21+
7. Follow the on-screen instructions to fill in the fields as described later on this page.
22+
8. Click **Save and Test**.
23+
24+
import KafkaFields from '/snippets/general-shared-text/kafka-platform.mdx';
25+
26+
<KafkaFields />

platform/destinations/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ To create a destination connector:
2424
- [Delta Table](/platform/destinations/delta-table)
2525
- [Elasticsearch](/platform/destinations/elasticsearch)
2626
- [Google Cloud Storage](/platform/destinations/google-cloud)
27+
- [Kafka](/platform/destinations/kafka)
2728
- [Milvus](/platform/destinations/milvus)
2829
- [MongoDB](/platform/destinations/mongodb)
2930
- [Neo4j](/platform/destinations/neo4j)

platform/sources/kafka.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Kafka
3+
---
4+
5+
Ingest your files into Unstructured from Kafka.
6+
7+
The requirements are as follows.
8+
9+
import KafkaPrerequisites from '/snippets/general-shared-text/kafka.mdx';
10+
11+
<KafkaPrerequisites />
12+
13+
To create the source connector:
14+
15+
1. On the sidebar, click **Connectors**.
16+
2. Click **Sources**.
17+
3. Cick **New** or **Create Connector**.
18+
4. Give the connector some unique **Name**.
19+
5. In the **Provider** area, click **Kafka**.
20+
6. Click **Continue**.
21+
7. Follow the on-screen instructions to fill in the fields as described later on this page.
22+
8. Click **Save and Test**.
23+
24+
import KafkaFields from '/snippets/general-shared-text/kafka-platform.mdx';
25+
26+
<KafkaFields />

platform/sources/overview.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ To create a source connector:
2626
- [Elasticsearch](/platform/sources/elasticsearch)
2727
- [Google Cloud Storage](/platform/sources/google-cloud)
2828
- [Google Drive](/platform/sources/google-drive)
29+
- [Kafka](/platform/sources/kafka)
2930
- [MongoDB](/platform/sources/mongodb)
3031
- [OneDrive](/platform/sources/onedrive)
3132
- [Outlook](/platform/sources/outlook)

0 commit comments

Comments
 (0)