Skip to content

Commit c590e52

Browse files
Merge pull request #211876 from spelluru/ehubkafka0919
OAuth samples
2 parents a0c2780 + 502ab2f commit c590e52

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

articles/event-hubs/dynamically-add-partitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can specify the number of partitions at the time of creating an event hub. I
1515
> Dynamic additions of partitions is available only in **premium** and **dedicated** tiers of Event Hubs.
1616
1717
> [!NOTE]
18-
> For Apache Kafka clients, an **event hub** maps to a **Kafka topic**. For more mappings between Azure Event Hubs and Apache Kafka, see [Kafka and Event Hubs conceptual mapping](event-hubs-for-kafka-ecosystem-overview.md#kafka-and-event-hub-conceptual-mapping)
18+
> For Apache Kafka clients, an **event hub** maps to a **Kafka topic**. For more mappings between Azure Event Hubs and Apache Kafka, see [Kafka and Event Hubs conceptual mapping](event-hubs-for-kafka-ecosystem-overview.md#kafka-and-event-hubs-conceptual-mapping)
1919
2020

2121
## Update the partition count

articles/event-hubs/event-hubs-for-kafka-ecosystem-overview.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ You can often use the Event Hubs Kafka endpoint from your applications without c
1717

1818
Conceptually, Kafka and Event Hubs are very similar: they're both partitioned logs built for streaming data, whereby the client controls which part of the retained log it wants to read. The following table maps concepts between Kafka and Event Hubs.
1919

20-
### Kafka and Event Hub conceptual mapping
20+
### Kafka and Event Hubs conceptual mapping
2121

2222
| Kafka Concept | Event Hubs Concept|
2323
| --- | --- |
2424
| Cluster | Namespace |
25-
| Topic | Event Hub |
25+
| Topic | An event hub |
2626
| Partition | Partition|
2727
| Consumer Group | Consumer Group |
2828
| Offset | Offset|
@@ -64,6 +64,10 @@ sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginMo
6464
sasl.login.callback.handler.class=CustomAuthenticateCallbackHandler
6565
```
6666

67+
> [!NOTE]
68+
> The above configuration properties are for the Java programming language. For **samples** that show how to use OAuth with Event Hubs for Kafka using different programming languages, see [samples on GitHub](https://github.com/Azure/azure-event-hubs-for-kafka/tree/master/tutorials/oauth).
69+
70+
6771
### Shared Access Signature (SAS)
6872
Event Hubs also provides the **Shared Access Signatures (SAS)** for delegated access to Event Hubs for Kafka resources. Authorizing access using OAuth 2.0 token-based mechanism provides superior security and ease of use over SAS. The built-in roles can also eliminate the need for ACL-based authorization, which has to be maintained and managed by the user. You can use this feature with your Kafka clients by specifying **SASL_SSL** for the protocol and **PLAIN** for the mechanism.
6973

@@ -86,8 +90,6 @@ sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule require
8690
#### Samples
8791
For a **tutorial** with step-by-step instructions to create an event hub and access it using SAS or OAuth, see [Quickstart: Data streaming with Event Hubs using the Kafka protocol](event-hubs-quickstart-kafka-enabled-event-hubs.md).
8892

89-
For more **samples** that show how to use OAuth with Event Hubs for Kafka, see [samples on GitHub](https://github.com/Azure/azure-event-hubs-for-kafka/tree/master/tutorials/oauth).
90-
9193
## Other Event Hubs features
9294

9395
The Event Hubs for Apache Kafka feature is one of three protocols concurrently available on Azure Event Hubs, complementing HTTP and AMQP. You can write with any of these protocols and read with any another, so that your current Apache Kafka producers can continue publishing via Apache Kafka, but your reader can benefit from the native integration with Event Hubs' AMQP interface, such as Azure Stream Analytics or Azure Functions. Conversely, you can readily integrate Azure Event Hubs into AMQP routing networks as a target endpoint, and yet read data through Apache Kafka integrations.
@@ -96,7 +98,7 @@ Additionally, Event Hubs features such as [Capture](event-hubs-capture-overview.
9698

9799
## Apache Kafka feature differences
98100

99-
The goal of Event Hubs for Apache Kafka is to provide access to Azure Event Hub's capabilities to applications that are locked into the Apache Kafka API and would otherwise have to be backed by an Apache Kafka cluster.
101+
The goal of Event Hubs for Apache Kafka is to provide access to Azure Event Hubs capabilities to applications that are locked into the Apache Kafka API and would otherwise have to be backed by an Apache Kafka cluster.
100102

101103
As explained [above](#is-apache-kafka-the-right-solution-for-your-workload), the Azure Messaging fleet provides rich and robust coverage for a multitude of messaging scenarios, and although the following features aren't currently supported through Event Hubs' support for the Apache Kafka API, we point out where and how the desired capability is available.
102104

@@ -110,7 +112,7 @@ The client-side [compression](https://cwiki.apache.org/confluence/display/KAFKA/
110112

111113
This feature is fundamentally at odds with Azure Event Hubs' multi-protocol model, which allows for messages, even those sent in batches, to be individually retrievable from the broker and through any protocol.
112114

113-
The payload of any Event Hub event is a byte stream and the content can be compressed with an algorithm of your choosing. The Apache Avro encoding format supports compression natively.
115+
The payload of any Event Hubs event is a byte stream and the content can be compressed with an algorithm of your choosing. The Apache Avro encoding format supports compression natively.
114116

115117
### Log Compaction
116118

@@ -139,3 +141,7 @@ If you must use the Kafka Streams framework on Azure, [Apache Kafka on HDInsight
139141

140142
## Next steps
141143
This article provided an introduction to Event Hubs for Kafka. To learn more, see [Apache Kafka developer guide for Azure Event Hubs](apache-kafka-developer-guide.md).
144+
145+
For a **tutorial** with step-by-step instructions to create an event hub and access it using SAS or OAuth, see [Quickstart: Data streaming with Event Hubs using the Kafka protocol](event-hubs-quickstart-kafka-enabled-event-hubs.md).
146+
147+
Also, see the [OAuth samples on GitHub](https://github.com/Azure/azure-event-hubs-for-kafka/tree/master/tutorials/oauth).

articles/event-hubs/event-hubs-kafka-connect-debezium.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Follow the latest instructions in the [Debezium documentation](https://debezium.
6464
Minimal reconfiguration is necessary when redirecting Kafka Connect throughput from Kafka to Event Hubs. The following `connect-distributed.properties` sample illustrates how to configure Connect to authenticate and communicate with the Kafka endpoint on Event Hubs:
6565

6666
> [!IMPORTANT]
67-
> - Debezium will auto-create a topic per table and a bunch of metadata topics. Kafka **topic** corresponds to an Event Hubs instance (event hub). For Apache Kafka to Azure Event Hubs mappings, see [Kafka and Event Hubs conceptual mapping](event-hubs-for-kafka-ecosystem-overview.md#kafka-and-event-hub-conceptual-mapping).
67+
> - Debezium will auto-create a topic per table and a bunch of metadata topics. Kafka **topic** corresponds to an Event Hubs instance (event hub). For Apache Kafka to Azure Event Hubs mappings, see [Kafka and Event Hubs conceptual mapping](event-hubs-for-kafka-ecosystem-overview.md#kafka-and-event-hubs-conceptual-mapping).
6868
> - There are different **limits** on number of event hubs in an Event Hubs namespace depending on the tier (Basic, Standard, Premium, or Dedicated). For these limits, See [Quotas](compare-tiers.md#quotas).
6969
7070
```properties

0 commit comments

Comments
 (0)