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/event-hubs/get-started-capture-python-v2.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Read Azure Event Hubs captured data from a Python app | Microsoft Docs
2
+
title: Read Azure Event Hubs captured data from a Python app (latest)
3
3
description: This article shows you how to write Python code to capture data that's sent to an event hub and read the captured event data from an Azure storage account.
4
4
services: event-hubs
5
5
documentationcenter: ''
@@ -10,20 +10,20 @@ ms.service: event-hubs
10
10
ms.workload: na
11
11
ms.tgt_pltfrm: na
12
12
ms.devlang: na
13
-
ms.topic: article
14
-
ms.date: 12/05/2019
13
+
ms.topic: quickstart
14
+
ms.date: 01/30/2020
15
15
ms.author: spelluru
16
16
17
17
---
18
18
19
-
# Capture Event Hubs data in Azure Storage and read it by using Python
19
+
# Capture Event Hubs data in Azure Storage and read it by using Python (azure-eventhub version 5)
20
20
21
21
You can configure an event hub so that the data that's sent to an event hub is captured in an Azure storage account or Azure Data Lake Storage. This article shows you how to write Python code to send events to an event hub and read the captured data from Azure Blob storage. For more information about this feature, see [Event Hubs Capture feature overview](event-hubs-capture-overview.md).
22
22
23
23
This quickstart uses the [Azure Python SDK](https://azure.microsoft.com/develop/python/) to demonstrate the Capture feature. The *sender.py* app sends simulated environmental telemetry to event hubs in JSON format. The event hub is configured to use the Capture feature to write this data to Blob storage in batches. The *capturereader.py* app reads these blobs and creates an append file for each device. The app then writes the data into CSV files.
24
24
25
25
> [!IMPORTANT]
26
-
> This quickstart uses version 5 of the Azure Event Hubs Python SDK. For a quickstart that uses version 1 of the Python SDK, see [Quickstart: Event Hubs Capture walkthrough - Python](event-hubs-capture-python.md). If you're using version 1 of the SDK, we recommend that you migrate your code to the latest version. For more information, see the [migration guide](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/migration_guide.md).
26
+
> This quickstart uses version 5 of the Azure Event Hubs Python SDK. For a quickstart that uses version 1 of the Python SDK, see [this article](event-hubs-capture-python.md).
Copy file name to clipboardExpand all lines: articles/event-hubs/get-started-node-send-v2.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,25 @@
1
1
---
2
-
title: Send and receive events using Node.js - Azure Event Hubs
3
-
description: This article provides a walkthrough for creating a Node.js application that sends events from Azure event hubs.
2
+
title: Send or receive events from Azure Event Hubs using Node.js (latest)
3
+
description: This article provides a walkthrough for creating a Node.js application that sends/receives events to/from Azure Event Hubs using the latest azure/event-hubs version 5 package.
4
4
services: event-hubs
5
5
author: spelluru
6
6
7
7
ms.service: event-hubs
8
8
ms.workload: core
9
-
ms.topic: article
10
-
ms.date: 01/09/2020
9
+
ms.topic: quickstart
10
+
ms.date: 01/30/2020
11
11
ms.author: spelluru
12
12
13
13
---
14
14
15
-
# Send events to or receive events from event hubs by using Node.js
15
+
# Send events to or receive events from event hubs by using Node.js (azure/event-hubs version 5)
16
16
17
17
Azure Event Hubs is a big data streaming platform and event-ingestion service that can receive and process millions of events per second. Event hubs can process and store events, data, or telemetry that's produced by distributed software and devices. Data that's sent to an event hub can be transformed and stored by using any real-time analytics provider or batching/storage adapters. For more information, see [Event Hubs overview](event-hubs-about.md) and [Event Hubs features](event-hubs-features.md).
18
18
19
19
This quickstart describes how to create Node.js applications that can send events to or receive events from an event hub.
20
20
21
21
> [!IMPORTANT]
22
-
> This quickstart uses version 5 of the Azure Event Hubs JavaScript SDK. For a quickstart that uses version 2 of the JavaScript SDK, see [Quickstart: Send events to or receive events from event hubs by using Node.js](event-hubs-node-get-started-send.md). If you're using version 2 of the SDK, we recommend that you migrate your code to the latest version. For more information, see the [migration guide](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/eventhub/event-hubs/migrationguide.md).
22
+
> This quickstart uses version 5 of the Azure Event Hubs JavaScript SDK. For a quick start that uses version 2 of the JavaScript SDK, see [this article](event-hubs-node-get-started-send.md).
23
23
24
24
## Prerequisites
25
25
@@ -28,7 +28,7 @@ To complete this quickstart, you need the following prerequisites:
28
28
- An Azure subscription. If you don't have one, [create a free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio) before you begin.
29
29
- Node.js version 8.x or later. Download the latest [long-term support (LTS) version](https://nodejs.org).
30
30
- Visual Studio Code (recommended) or any other integrated development environment (IDE).
31
-
- An active Event Hubs namespace and event hub. To create them, do the following:
31
+
- An active Event Hubs namespace and event hub. To create them, do the following steps:
32
32
33
33
1. In the [Azure portal](https://portal.azure.com), create a namespace of type *Event Hubs*, and then obtain the management credentials that your application needs to communicate with the event hub.
34
34
1. To create the namespace and event hub, follow the instructions at [Quickstart: Create an event hub by using the Azure portal](event-hubs-create.md).
@@ -110,7 +110,7 @@ Congratulations! You have now sent events to an event hub.
110
110
In this section, you receive events from an event hub by using an Azure Blob storage checkpoint store in a Node.jsapplication. It performs metadata checkpoints on received messages at regular intervals in an Azure Storageblob. This approach makes it easy to continue receiving messages later from where you left off.
111
111
112
112
### Create an Azure storage account and a blob container
113
-
To create an Azure storage account and a blob container in it, do the following:
113
+
To create an Azure storage account and a blob container in it, do the following actions:
114
114
115
115
1. [Create an Azure storage account](../storage/common/storage-account-create.md?tabs=azure-portal)
116
116
2. [Create a blob container in the storage account](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container)
@@ -172,7 +172,7 @@ Be sure to record the connection string and container name for later use in the
172
172
console.log("Error occurred: ", err);
173
173
});
174
174
```
175
-
1. In the code, use real values to replace the following:
175
+
1. In the code, use real values to replace the following values:
Copy file name to clipboardExpand all lines: articles/event-hubs/get-started-python-send-v2.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,25 @@
1
1
---
2
-
title: Send or receive events by using Python - Azure Event Hubs | Microsoft Docs
3
-
description: This article provides a walkthrough for creating a Python application that sends events to Azure event hubs.
2
+
title: Send or receive events from Azure Event Hubs using Python (latest)
3
+
description: This article provides a walkthrough for creating a Python application that sends/receives events to/from Azure Event Hubs using the latest azure-eventhub version 5 package.
4
4
services: event-hubs
5
5
author: spelluru
6
6
7
7
ms.service: event-hubs
8
8
ms.workload: core
9
-
ms.topic: article
10
-
ms.date: 01/08/2020
9
+
ms.topic: quickstart
10
+
ms.date: 01/30/2020
11
11
ms.author: spelluru
12
12
13
13
---
14
14
15
-
# Send events to or receive events from event hubs by using Python
15
+
# Send events to or receive events from event hubs by using Python (azure-eventhub version 5)
16
16
17
17
Azure Event Hubs is a big data streaming platform and event-ingestion service that can receive and process millions of events per second. Event hubs can process and store events, data, or telemetry that's produced by distributed software and devices. Data that's sent to an event hub can be transformed and stored by using any real-time analytics provider or batching/storage adapters. For more information, see [Event Hubs overview](event-hubs-about.md) and [Event Hubs features](event-hubs-features.md).
18
18
19
19
This quickstart describes how to create Python applications that can send events to or receive events from an event hub.
20
20
21
21
> [!IMPORTANT]
22
-
> This quickstart uses version 5 of the Azure Event Hubs Python SDK. For a quickstart that uses version 1 of the Python SDK, see [Quickstart: Send and receive events with event hubs by using Python](event-hubs-python-get-started-send.md). If you're using version 1 of the SDK, we recommend that you migrate your code to the latest version. For more information, see the [migration guide](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/migration_guide.md).
23
-
22
+
> This quickstart uses version 5 of the Azure Event Hubs Python SDK. For a quick start that uses version 1 of the Python SDK, see [this article](event-hubs-python-get-started-send.md).
24
23
25
24
## Prerequisites
26
25
@@ -85,7 +84,7 @@ In this section, you create a Python script to send events to the event hub that
85
84
This quickstart uses Azure Blob storage as a checkpoint store. The checkpoint store is used to persist checkpoints (that is, the last read positions).
86
85
87
86
### Create an Azure storage account and a blob container
88
-
Create an Azure storage account and a blob container in it by doing the following:
87
+
Create an Azure storage account and a blob container in it by doing the following steps:
89
88
90
89
1. [Create an Azure Storage account](../storage/common/storage-account-create.md?tabs=azure-portal)
91
90
2. [Create a blob container](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container)
0 commit comments