Skip to content

Commit 4a78633

Browse files
committed
cleanup
1 parent abd29c6 commit 4a78633

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

modules/use-cases-architectures/pages/starlight/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
:title: Get started with DataStax starlight quite of APIs
44
:page-aliases: starlight::index.adoc,starlight-suite::index.adoc
55
:navtitle: Starlight Extensions
6-
:page-aliases: docs@luna-streaming::starlight.adoc,luna-streaming:components:starlight.adoc
76

8-
The Starlight suite of extensions is a collection of Apache Pulsar protocol handlers that extend an existing Pulsar cluster. The goal of all the extensions are to create a native, seamless interaction with a Pulsar cluster using existing tooling and clients.
7+
The Starlight suite of extensions is a collection of Apache Pulsar protocol handlers that extend an existing Pulsar cluster.
8+
The goal of all the extensions is to create a native, seamless interaction with a Pulsar cluster using existing tooling and clients.
99

1010
== Starlight for Kafka
1111

modules/use-cases-architectures/pages/starlight/kafka/index.adoc

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ image:s4k-architecture.png[Starlight for Kafka Architecture]
1414

1515
== Establishing the Kafka protocol handler
1616

17-
Before you can use a Kafka client can interact with your Pulsar cluster, you need the Starlight for Kafka protocol handler installed in the cluster. Installation looks a bit different depending on where your Pulsar cluster is running. Choose the option that best fits your needs.
17+
Before a Kafka client can interact with your Pulsar cluster, you need the Starlight for Kafka protocol handler installed in the cluster.
18+
Installation looks a bit different depending on where your Pulsar cluster is running.
19+
Choose the option that best fits your needs.
1820

1921
[tabs]
2022
====
2123
Astra Streaming::
2224
+
2325
--
2426
25-
If you want a working Kafka extension as quickly as possible, this is your best bet. This is also a good option for those that already have a streaming tenant and are looking to extend it.
27+
If you want a working Kafka extension as quickly as possible, this is your best bet.
28+
This is also a good option for those that already have a streaming tenant and are looking to extend it.
2629
2730
. Sign in to your Astra account and navigate to your streaming tenant.
2831
+
@@ -39,7 +42,7 @@ image:enable-kafka-button.png[Astra Streaming enable kafka]
3942
. A message will let you know of the additions (and restrictions) that come with using Starlight for Kafka.
4043
image:enable-kafka-message.png[Astra Streaming enable kafka message]
4144
42-
. Click the "Enable Kafka" button to confirm your understanding.
45+
. Select the "Enable Kafka" button to confirm your understanding.
4346
4447
Your Astra Streaming tenant is ready for prime time! Continue to the next section of the guide to see it in action.
4548
--
@@ -51,21 +54,24 @@ The Starlight for Kafka extension is included in the `luna-streaming-all` image
5154
Self Managed::
5255
+
5356
--
54-
Already got your own Pulsar Cluster? Or maybe your using a standalone cluster? Starlight for Kafka can easily be a part of that cluster! Follow the "xref:starlight-for-kafka:installation:starlight-kafka-quickstart.adoc[]" guide.
57+
Already have your own Pulsar cluster? Or maybe you're using a standalone cluster? Starlight for Kafka can easily be a part of that cluster! Follow the "xref:starlight-for-kafka:installation:starlight-kafka-quickstart.adoc[]" guide.
5558
--
5659
====
5760

5861
== Messaging with Starlight for Kafka
5962

60-
Starlight for Kafka supports quite a few different use cases. With a Pulsar cluster between producers and consumers you can interchange the type of producer and consumer to fit your needs. *The below examples are using an Astra Streaming tenant as the Kafka bootstrap server.* If you are using Luna or self-managed, switch the bootstrap server URL for your own.
63+
Starlight for Kafka supports quite a few different use cases. With a Pulsar cluster between producers and consumers you can interchange the type of producer and consumer to fit your needs.
64+
65+
*The below examples are using an Astra Streaming tenant as the Kafka bootstrap server.* If you are using Luna Streaming or a self-managed tenant, switch the bootstrap server URL for your own.
6166

6267
=== Retrieve Kafka connection properties in Astra Streaming
6368

64-
While on the "Connect" tab in the Astra Streaming portal, the "kafka" area will provide important connection information. You will need that to create a working Kafka client or using the CLI.
69+
In the Astra Streaming portal "Connect" tab, the "kafka" area provides important connection information.
70+
You will need this connection information to create a working Kafka client or use the CLI.
6571

6672
image:kafka-client-settings.png[Astra Streaming kafka settings]
6773

68-
TIP: While reviewing the Kafka connection settings in the Astra portal, if you click the clipboard icon you will get those values as well as a working token to paste in code.
74+
TIP: Click the clipboard icon to copy the Kafka connection values, as well as a working token to paste in code.
6975

7076
=== Produce and consume a message
7177

@@ -74,7 +80,8 @@ TIP: While reviewing the Kafka connection settings in the Astra portal, if you c
7480
Kafka CLI::
7581
+
7682
--
77-
Download the latest Kafka dist https://www.apache.org/dyn/closer.cgi?path=/kafka/3.3.1/kafka_2.13-3.3.1.tgz[here^]{external-link-icon}. With the tar ball extracted, the producer and consumer cli's are in the 'bin' folder.
83+
Download the latest Kafka distribution https://www.apache.org/dyn/closer.cgi?path=/kafka/3.3.1/kafka_2.13-3.3.1.tgz[here^]{external-link-icon}.
84+
With the tarball extracted, the producer and consumer CLIs are in the 'bin' folder.
7885
7986
. To get started, let's set a few variables. If you've completed our "xref:astra-streaming:getting-started:index.adoc[Getting started with Astra Streaming]" guide, the below values will be a perfect fit for your existing tenant.
8087
+
@@ -86,23 +93,21 @@ NAMESPACE="<REPLACE_WITH_NAMESPACE>"
8693
TOPIC="<REPLACE_WITH_TOPIC>"
8794
----
8895
89-
. Now let's use those variables to enter in Kafka's producer shell.
96+
. Now let's enter those variables in Kafka's producer shell.
9097
+
9198
[source,shell]
9299
----
93100
# cd kafka_2.13-3.3.1
94101
./bin/kafka-console-producer.sh --topic "$TENANT/$NAMESPACE/$TOPIC" --bootstrap-server "$SERVICE_URL"
95102
----
96103
97-
. Type in a super memorable messages and hit 'enter' to send. Press 'Ctrl-C' to exit the shell.
104+
. Type in a super memorable message and hit 'enter' to send. Press 'Ctrl-C' to exit the shell.
98105
+
99106
[source,shell]
100107
----
101108
> This is my first S4K message.
102109
----
103-
104110
A new message has been produced in the provided tenant/namespace/topic and is ready for consumption.
105-
106111
. Start the Kafka consumer shell.
107112
+
108113
[source,shell]
@@ -120,16 +125,17 @@ This is my first S4K message.
120125
121126
. Press 'Ctrl-C' to exit the consumer shell.
122127
123-
Wow, you did it! Kafka producer and consumer with an Apache Pulsar cluster. How about trying the Java client now?
128+
Wow, you did it! A Kafka producer and consumer with an Apache Pulsar cluster. How about trying the Java client now?
124129
--
125130
Kafka Client (Java)::
126131
+
127132
--
128-
This example uses maven as the project structure. If you prefer gradle or another, this code should still be a good fit.
133+
This example uses Maven for the project structure.
134+
If you prefer Gradle or another tool, this code should still be a good fit.
129135
130-
TIP: Visit our https://github.com/datastax/astra-streaming-examples[examples repo^]{external-link-icon} to see the complete source of this example.
136+
TIP: Visit our https://github.com/datastax/astra-streaming-examples[examples repo^]{external-link-icon} to see the complete source for this example.
131137
132-
. Create a new maven project.
138+
. Create a new Maven project.
133139
+
134140
[source,shell]
135141
----
@@ -170,7 +176,7 @@ include::{astra-streaming-examples-repo}/java/starlight-for-kafka/kafka-client/S
170176
include::{astra-streaming-examples-repo}/java/starlight-for-kafka/kafka-client/StarlightForKafkaClient/src/main/java/org/example/App.java[tag=build-producer]
171177
----
172178
173-
. Past the consumer code into the file. This creates a basic subscription and retrieves the latest messages on the topic.
179+
. Paste the consumer code into the file. This creates a basic subscription and retrieves the latest messages on the topic.
174180
+
175181
[source,java]
176182
----
@@ -185,7 +191,7 @@ mvn clean package assembly:single
185191
java -jar target/StarlightForKafkaClient-1.0-SNAPSHOT-jar-with-dependencies.jar
186192
----
187193
188-
. If all goes as it should your output will be similar to this:
194+
. If all goes as it should, your output will be similar to this:
189195
+
190196
[source,shell]
191197
----

0 commit comments

Comments
 (0)