@@ -3,7 +3,7 @@ title: Using Azure Cosmos DB for Apache Cassandra® with HDInsight on AKS for Ap
3
3
description : Learn how to Sink Apache Kafka® message into Azure Cosmos DB for Apache Cassandra®, with Apache Flink® running on HDInsight on AKS.
4
4
ms.service : hdinsight-aks
5
5
ms.topic : how-to
6
- ms.date : 10/30/2023
6
+ ms.date : 04/02/2024
7
7
---
8
8
9
9
# Sink Apache Kafka® messages into Azure Cosmos DB for Apache Cassandra, with Apache Flink® on HDInsight on AKS
@@ -16,7 +16,7 @@ This example is prominent when Engineers prefer real-time aggregated data for an
16
16
17
17
## Prerequisites
18
18
19
- * [ Apache Flink 1.16 .0 on HDInsight on AKS] ( ../flink/flink-create-cluster-portal.md )
19
+ * [ Apache Flink 1.17 .0 on HDInsight on AKS] ( ../flink/flink-create-cluster-portal.md )
20
20
* [ Apache Kafka 3.2 on HDInsight] ( ../../hdinsight/kafka/apache-kafka-get-started.md )
21
21
* [ Azure Cosmos DB for Apache Cassandra] ( ../../cosmos-db/cassandra/index.yml )
22
22
* An Ubuntu VM for maven project development environment in the same VNet as HDInsight on AKS cluster.
@@ -51,106 +51,105 @@ Go to maven project folder **azure-cosmos-db-cassandra-java-getting-started-main
51
51
52
52
** maven pom.xml**
53
53
``` xml
54
-
55
54
<?xml version =" 1.0" encoding =" UTF-8" ?>
56
55
<project xmlns =" http://maven.apache.org/POM/4.0.0"
57
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
58
- xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
59
- <modelVersion >4.0.0</modelVersion >
60
-
61
- <groupId >com.azure.cosmosdb.cassandra</groupId >
62
- <artifactId >cosmosdb-cassandra-examples</artifactId >
63
- <version >1.0-SNAPSHOT</version >
64
- <dependencies >
65
- <dependency >
66
- <groupId >org.apache.flink</groupId >
67
- <artifactId >flink-java</artifactId >
68
- <version >1.16 .0</version >
69
- </dependency >
70
- <!-- https://mvnrepository.com/artifact/org.apache.flink/flink-streaming-java -->
71
- <dependency >
72
- <groupId >org.apache.flink</groupId >
73
- <artifactId >flink-streaming-java</artifactId >
74
- <version >1.16 .0</version >
75
- </dependency >
76
- <!-- https://mvnrepository.com/artifact/org.apache.flink/flink-clients -->
77
- <dependency >
78
- <groupId >org.apache.flink</groupId >
79
- <artifactId >flink-clients</artifactId >
80
- <version >1.16 .0</version >
81
- </dependency >
82
- <dependency >
83
- <groupId >org.apache.flink</groupId >
84
- <artifactId >flink-connector-files</artifactId >
85
- <version >1.16 .0</version >
86
- </dependency >
87
- <dependency >
88
- <groupId >org.apache.flink</groupId >
89
- <artifactId >flink-connector-kafka</artifactId >
90
- <version >1.16 .0</version >
91
- </dependency >
92
- <dependency >
93
- <groupId >com.datastax.cassandra</groupId >
94
- <artifactId >cassandra-driver-core</artifactId >
95
- <version >3.3.0</version >
96
- </dependency >
97
- <dependency >
98
- <groupId >com.datastax.cassandra</groupId >
99
- <artifactId >cassandra-driver-mapping</artifactId >
100
- <version >3.1.4</version >
101
- </dependency >
102
- <dependency >
103
- <groupId >com.datastax.cassandra</groupId >
104
- <artifactId >cassandra-driver-extras</artifactId >
105
- <version >3.1.4</version >
106
- </dependency >
107
- <dependency >
108
- <groupId >org.slf4j</groupId >
109
- <artifactId >slf4j-api</artifactId >
110
- <version >1.7.5</version >
111
- </dependency >
112
- <dependency >
113
- <groupId >org.slf4j</groupId >
114
- <artifactId >slf4j-log4j12</artifactId >
115
- <version >1.7.5</version >
116
- </dependency >
117
- </dependencies >
118
-
119
- <build >
120
- <plugins >
121
- <plugin >
122
- <artifactId >maven-assembly-plugin</artifactId >
123
- <configuration >
124
- <descriptorRefs >
125
- <descriptorRef >jar-with-dependencies</descriptorRef >
126
- </descriptorRefs >
127
- <finalName >cosmosdb-cassandra-examples</finalName >
128
- <appendAssemblyId >false</appendAssemblyId >
129
- </configuration >
130
- <executions >
131
- <execution >
132
- <id >make-assembly</id >
133
- <phase >package</phase >
134
- <goals >
135
- <goal >single</goal >
136
- </goals >
137
- </execution >
138
- </executions >
139
- </plugin >
140
- <plugin >
141
- <groupId >org.apache.maven.plugins</groupId >
142
- <artifactId >maven-compiler-plugin</artifactId >
143
- <configuration >
144
- <source >1.8</source >
145
- <target >1.8</target >
146
- </configuration >
147
- </plugin >
148
- </plugins >
149
- </build >
150
-
56
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
57
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
58
+ <modelVersion >4.0.0</modelVersion >
59
+
60
+ <groupId >com.azure.cosmosdb.cassandra</groupId >
61
+ <artifactId >cosmosdb-cassandra-examples</artifactId >
62
+ <version >1.0-SNAPSHOT</version >
63
+ <dependencies >
64
+ <dependency >
65
+ <groupId >org.apache.flink</groupId >
66
+ <artifactId >flink-java</artifactId >
67
+ <version >1.17 .0</version >
68
+ </dependency >
69
+ <!-- https://mvnrepository.com/artifact/org.apache.flink/flink-streaming-java -->
70
+ <dependency >
71
+ <groupId >org.apache.flink</groupId >
72
+ <artifactId >flink-streaming-java</artifactId >
73
+ <version >1.17 .0</version >
74
+ </dependency >
75
+ <!-- https://mvnrepository.com/artifact/org.apache.flink/flink-clients -->
76
+ <dependency >
77
+ <groupId >org.apache.flink</groupId >
78
+ <artifactId >flink-clients</artifactId >
79
+ <version >1.17 .0</version >
80
+ </dependency >
81
+ <dependency >
82
+ <groupId >org.apache.flink</groupId >
83
+ <artifactId >flink-connector-files</artifactId >
84
+ <version >1.17 .0</version >
85
+ </dependency >
86
+ <dependency >
87
+ <groupId >org.apache.flink</groupId >
88
+ <artifactId >flink-connector-kafka</artifactId >
89
+ <version >1.17 .0</version >
90
+ </dependency >
91
+ <dependency >
92
+ <groupId >com.datastax.cassandra</groupId >
93
+ <artifactId >cassandra-driver-core</artifactId >
94
+ <version >3.3.0</version >
95
+ </dependency >
96
+ <dependency >
97
+ <groupId >com.datastax.cassandra</groupId >
98
+ <artifactId >cassandra-driver-mapping</artifactId >
99
+ <version >3.1.4</version >
100
+ </dependency >
101
+ <dependency >
102
+ <groupId >com.datastax.cassandra</groupId >
103
+ <artifactId >cassandra-driver-extras</artifactId >
104
+ <version >3.1.4</version >
105
+ </dependency >
106
+ <dependency >
107
+ <groupId >org.slf4j</groupId >
108
+ <artifactId >slf4j-api</artifactId >
109
+ <version >1.7.5</version >
110
+ </dependency >
111
+ <dependency >
112
+ <groupId >org.slf4j</groupId >
113
+ <artifactId >slf4j-log4j12</artifactId >
114
+ <version >1.7.5</version >
115
+ </dependency >
116
+ </dependencies >
117
+
118
+ <build >
119
+ <plugins >
120
+ <plugin >
121
+ <artifactId >maven-assembly-plugin</artifactId >
122
+ <configuration >
123
+ <descriptorRefs >
124
+ <descriptorRef >jar-with-dependencies</descriptorRef >
125
+ </descriptorRefs >
126
+ <finalName >cosmosdb-cassandra-examples</finalName >
127
+ <appendAssemblyId >false</appendAssemblyId >
128
+ </configuration >
129
+ <executions >
130
+ <execution >
131
+ <id >make-assembly</id >
132
+ <phase >package</phase >
133
+ <goals >
134
+ <goal >single</goal >
135
+ </goals >
136
+ </execution >
137
+ </executions >
138
+ </plugin >
139
+ <plugin >
140
+ <groupId >org.apache.maven.plugins</groupId >
141
+ <artifactId >maven-compiler-plugin</artifactId >
142
+ <configuration >
143
+ <source >1.8</source >
144
+ <target >1.8</target >
145
+ </configuration >
146
+ </plugin >
147
+ </plugins >
148
+ </build >
149
+
151
150
</project >
152
-
153
151
```
152
+
154
153
** Cosmos DB for Apache Cassandra's connection configuration**
155
154
156
155
You're required to update your host-name and user-name, and keys in the below snippet.
0 commit comments