You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/hdinsight-aks/flink/azure-service-bus-demo.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
title: Use Apache Flink on HDInsight on AKS with Azure Service Bus
3
-
description: Use Apache Flink DataStream API on HDInsight on AKS with Azure Service Bus
3
+
description: Use Apache Flink DataStream API on HDInsight on AKS with Azure Service Bus.
4
4
ms.service: hdinsight-aks
5
5
ms.topic: how-to
6
-
ms.date: 11/27/2023
6
+
ms.date: 04/02/2024
7
7
---
8
8
# Use Apache Flink on HDInsight on AKS with Azure Service Bus
9
9
@@ -13,7 +13,7 @@ This article provides an overview and demonstration of Apache Flink DataStream A
13
13
14
14
## Prerequisites
15
15
16
-
-[Flink Cluster 1.16.0 on HDInsight on AKS](./flink-create-cluster-portal.md)
16
+
-[Flink Cluster 1.17.0 on HDInsight on AKS](./flink-create-cluster-portal.md)
17
17
- For this demonstration, we use a Window VM as maven project develop env in the same VNET as HDInsight on AKS.
18
18
- During the [creation](./flink-create-cluster-portal.md) of the Flink cluster, you are required to ensure that SSH access is selected. This enables you to access the cluster using Secure Shell (SSH).
19
19
- Set up an [Azure Service Bus](/azure/service-bus-messaging/service-bus-messaging-overview) instance.
@@ -76,7 +76,7 @@ In the POM.xml file, we define the project's dependencies using Maven, ensuring
env.execute("Produce message to Azure event hub");
97
+
}
98
+
99
+
public static DataStream<String> createStream(StreamExecutionEnvironment env){
100
+
return env.generateSequence(0, 200)
101
+
.map(new MapFunction<Long, String>() {
102
+
@Override
103
+
public String map(Long in) {
104
+
return "FLINK PRODUCE " + in;
105
+
}
106
+
});
107
+
}
108
+
}
109
+
```
110
+
105
111
1. Add the snippet to run the Flink Producer.
106
112
107
113
:::image type="content" source="./media/flink-eventhub/testing-flink.png" alt-text="Screenshot showing how to test Flink in Event Hubs." border="true" lightbox="./media/flink-eventhub/testing-flink.png":::
108
114
109
-
1. Once the code is executed, the events are stored in the topic **“TEST”**
115
+
1. Once the code is executed, the events are stored in the topic **"topic1"**
0 commit comments