Skip to content

Commit 65681e9

Browse files
committed
remaining updates for Python and Node quickstarts
1 parent f4d8127 commit 65681e9

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

articles/event-hubs/get-started-capture-python-v2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
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)
33
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.
44
services: event-hubs
55
documentationcenter: ''
@@ -10,20 +10,20 @@ ms.service: event-hubs
1010
ms.workload: na
1111
ms.tgt_pltfrm: na
1212
ms.devlang: na
13-
ms.topic: article
14-
ms.date: 12/05/2019
13+
ms.topic: quickstart
14+
ms.date: 01/30/2020
1515
ms.author: spelluru
1616

1717
---
1818

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)
2020

2121
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).
2222

2323
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.
2424

2525
> [!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).
2727
2828
In this quickstart, you:
2929

articles/event-hubs/get-started-node-send-v2.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
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.
44
services: event-hubs
55
author: spelluru
66

77
ms.service: event-hubs
88
ms.workload: core
9-
ms.topic: article
10-
ms.date: 01/09/2020
9+
ms.topic: quickstart
10+
ms.date: 01/30/2020
1111
ms.author: spelluru
1212

1313
---
1414

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)
1616

1717
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).
1818

1919
This quickstart describes how to create Node.js applications that can send events to or receive events from an event hub.
2020

2121
> [!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).
2323
2424
## Prerequisites
2525

@@ -28,7 +28,7 @@ To complete this quickstart, you need the following prerequisites:
2828
- 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.
2929
- Node.js version 8.x or later. Download the latest [long-term support (LTS) version](https://nodejs.org).
3030
- 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:
3232

3333
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.
3434
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.
110110
In this section, you receive events from an event hub by using an Azure Blob storage checkpoint store in a Node.js application. It performs metadata checkpoints on received messages at regular intervals in an Azure Storage blob. This approach makes it easy to continue receiving messages later from where you left off.
111111

112112
### 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:
114114

115115
1. [Create an Azure storage account](../storage/common/storage-account-create.md?tabs=azure-portal)
116116
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
172172
console.log("Error occurred: ", err);
173173
});
174174
```
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:
176176
- `EVENT HUBS NAMESPACE CONNECTION STRING`
177177
- `EVENT HUB NAME`
178178
- `AZURE STORAGE CONNECTION STRING`

articles/event-hubs/get-started-python-send-v2.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
---
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.
44
services: event-hubs
55
author: spelluru
66

77
ms.service: event-hubs
88
ms.workload: core
9-
ms.topic: article
10-
ms.date: 01/08/2020
9+
ms.topic: quickstart
10+
ms.date: 01/30/2020
1111
ms.author: spelluru
1212

1313
---
1414

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)
1616

1717
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).
1818

1919
This quickstart describes how to create Python applications that can send events to or receive events from an event hub.
2020

2121
> [!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).
2423
2524
## Prerequisites
2625

@@ -85,7 +84,7 @@ In this section, you create a Python script to send events to the event hub that
8584
This quickstart uses Azure Blob storage as a checkpoint store. The checkpoint store is used to persist checkpoints (that is, the last read positions).
8685
8786
### 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:
8988
9089
1. [Create an Azure Storage account](../storage/common/storage-account-create.md?tabs=azure-portal)
9190
2. [Create a blob container](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container)

0 commit comments

Comments
 (0)