Skip to content

Commit d7e79c4

Browse files
Merge pull request #48920 from spelluru/ehubtraining0128
Updates to the Event Hubs trainnig
2 parents c373dc4 + 729f804 commit d7e79c4

10 files changed

+30
-119
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"redirections": [
3+
{
4+
"source_path_from_root": "/learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/8-summary.yml",
5+
"redirect_url": "https://learn.microsoft.com/training/modules/enable-reliable-messaging-for-big-data-apps-using-event-hubs/7-summary",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path_from_root": "/learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/7-exercise-evaluate-the-performance-of-the-deployed-event-hub-using-the-azure-portal.md",
10+
"redirect_url": "https://learn.microsoft.com/training/modules/enable-reliable-messaging-for-big-data-apps-using-event-hubs/7-summary",
11+
"redirect_document_id": false
12+
},
313
{
414
"source_path_from_root": "/learn-pr/advocates/send-crop-weather-alerts/1-introduction.yml",
515
"redirect_url": "https://learn.microsoft.com/azure/azure-functions/functions-bindings-twilio",

learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/7-exercise-evaluate-the-performance-of-the-deployed-event-hub-using-the-azure-portal.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/8-summary.yml renamed to learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/7-summary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.8-summary
2+
uid: learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.7-summary
33
title: Summary
44
metadata:
55
adobe-target: true
@@ -12,7 +12,7 @@ metadata:
1212
ms.topic: unit
1313
durationInMinutes: 3
1414
content: |
15-
[!include[](includes/8-summary.md)]
15+
[!include[](includes/7-summary.md)]
1616
quiz:
1717
title: Check your knowledge
1818
questions:

learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/includes/5-exercise-configure-applications-to-send-or-receive-messages-through-an-event-hub.md

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ In this exercise, you use Visual Studio Code (VS Code) to modify the SimpleSend
7575
7676
1. Launch VS Code.
7777
1. Select **File** -> **Open Folder**, and select the **SimpleSend** folder under c:/users/USERID/azure-event-hubs/samples/java/basic.
78-
1. In the Code Explorer in the left pane, double-click **SimpleSend.java** to open it in the editor.
78+
1. In the Code Explorer in the left pane, expand **src**, and then double-click **SimpleSend.java** to open it in the editor.
7979
1. In the editor, locate and replace the following strings under `ConnectionStringBuilder``:
8080
8181
- `<EVENT HUBS NAMESPACE - CONNECTION STRING>` with the connection string to your Event Hubs namespace.
@@ -115,7 +115,7 @@ In this procedure, you use the `EventProcessorClient` method. You edit the Event
115115
116116
1. Launch another instance of the VS Code.
117117
1. Select **File** -> **Open Folder**, and select the **EventProcessorSample** folder under c:/users/USERID/azure-event-hubs/samples/java/basic.
118-
1. In the Code Explorer in the left pane, double-click **EventProcessorSample.java** to open it in the editor.
118+
1. In the Code Explorer in the left pane, expand **src**, and then double-click **EventProcessorSample.java** to open it in the editor.
119119
1. In the editor, locate and replace the following strings in the editor:
120120
121121
- `<EVENT HUBS NAMESPACE - CONNECTION STRING>` - connection string to the Event Hubs namespace.
@@ -150,13 +150,19 @@ In this procedure, you use the `EventProcessorClient` method. You edit the Event
150150
cd ~/azure-event-hubs/samples/Java/Basic/EventProcessorSample
151151
java -jar ./target/eventprocessorsample-1.0.0-jar-with-dependencies.jar
152152
```
153+
1. You should see the following output from the receiver app:
154+
155+
```bash
156+
Starting event processor
157+
Press enter to stop.
158+
```
153159
1. Switch to the VS Code window that has the sending application (SimpleSend) code open. In the integrated terminal, run the Java application from the command line by running the following `java` command, and specifying a .jar package.
154160
155161
```bash
156162
cd ~/azure-event-hubs/samples/Java/Basic/SimpleSend
157163
java -jar ./target/simplesend-1.0.0-jar-with-dependencies.jar
158164
```
159-
1. When you see **Send Complete...**, <kbd>Enter</kbd> to stop the application.
165+
1. When you see the **Send Complete...** message, <kbd>Enter</kbd> or <kbd>CTRL+C</kbd> to stop the application.
160166
161167
```output
162168
jar-with-dependencies.jar
@@ -169,31 +175,13 @@ In this procedure, you use the `EventProcessorClient` method. You edit the Event
169175
170176
```output
171177
...
172-
SAMPLE: Partition 0 checkpointing at 1064,19
173-
SAMPLE (3,1120,20): "Message 80"
174-
SAMPLE (3,1176,21): "Message 84"
175-
SAMPLE (3,1232,22): "Message 88"
176-
SAMPLE (3,1288,23): "Message 92"
177-
SAMPLE (3,1344,24): "Message 96"
178-
SAMPLE: Partition 3 checkpointing at 1344,24
179-
SAMPLE (2,1120,20): "Message 83"
180-
SAMPLE (2,1176,21): "Message 87"
181-
SAMPLE (2,1232,22): "Message 91"
182-
SAMPLE (2,1288,23): "Message 95"
183-
SAMPLE (2,1344,24): "Message 99"
184-
SAMPLE: Partition 2 checkpointing at 1344,24
185-
SAMPLE: Partition 1 batch size was 3 for host mystorageacct2018-46d60a17-7060-4b53-b0e0-cca70c970a47
186-
SAMPLE (0,1120,20): "Message 81"
187-
SAMPLE (0,1176,21): "Message 85"
188-
SAMPLE: Partition 0 batch size was 10 for host mystorageacct2018-46d60a17-7060-4b53-b0e0-cca70c970a47
189-
SAMPLE: Partition 0 got event batch
190-
SAMPLE (0,1232,22): "Message 89"
191-
SAMPLE (0,1288,23): "Message 93"
192-
SAMPLE (0,1344,24): "Message 97"
193-
SAMPLE: Partition 0 checkpointing at 1344,24
194-
SAMPLE: Partition 3 batch size was 8 for host mystorageacct2018-46d60a17-7060-4b53-b0e0-cca70c970a47
195-
SAMPLE: Partition 2 batch size was 9 for host mystorageacct2018-46d60a17-7060-4b53-b0e0-cca70c970a47
196-
SAMPLE: Partition 0 batch size was 3 for host mystorageacct2018-46d60a17-7060-4b53-b0e0-cca70c970a47
178+
Starting event processor
179+
Press enter to stop.
180+
Processing event from partition 0 with sequence number 1 with body: Message 0
181+
Processing event from partition 0 with sequence number 2 with body: Message 1
182+
Processing event from partition 0 with sequence number 3 with body: Message 2
183+
Processing event from partition 0 with sequence number 4 with body: Message 3
184+
Processing event from partition 0 with sequence number 5 with body: Message 4
197185
```
198186
199187
## Summary

learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/includes/6-evaluate-the-performance-of-the-deployed-event-hub-using-the-azure-portal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Evaluate your Event Hubs service by testing that your event hub is processing da
66

77
## How do you use the Azure portal to view your event hub activity?
88

9-
The Overview pane for your event hub service shows message counts, which represent the data (events) received and sent by the event hub. You can choose the timescale while viewing these events.
9+
The Overview pane for your event hub service shows message counts, which represent the data (events) received and sent by the event hub. You can choose the timescale while viewing these events. If you don't see the incoming and outgoing message counts, wait for a few minutes and refresh the page.
1010

1111
![Screenshot of the Azure portal displaying the Event Hub namespace with message counts.](../media/6-view-messages.png)
1212

learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/includes/7-exercise-evaluate-the-performance-of-the-deployed-event-hub-using-the-azure-portal.md

Lines changed: 0 additions & 68 deletions
This file was deleted.

learn-pr/azure/enable-reliable-messaging-for-big-data-apps-using-event-hubs/index.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ units:
4141
- learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.4-configure-applications-to-send-or-receive-messages-through-an-event-hub
4242
- learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.5-exercise-configure-applications-to-send-or-receive-messages-through-an-event-hub
4343
- learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.6-evaluate-the-performance-of-the-deployed-event-hub-using-the-azure-portal
44-
- learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.7-exercise-evaluate-the-performance-of-the-deployed-event-hub-using-the-azure-portal
45-
- learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.8-summary
44+
- learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.7-summary
4645
badge:
4746
uid: learn.enable-reliable-messaging-for-big-data-applications-using-azure-event-hubs.badge
4847

-23.1 KB
Loading
6.53 KB
Loading

0 commit comments

Comments
 (0)