Skip to content

Commit 7d6d010

Browse files
authored
MINOR: remove ZK from code base (#529)
1 parent 2aeeaea commit 7d6d010

16 files changed

+142
-1300
lines changed

.semaphore/semaphore.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ after_pipeline:
155155
- name: SonarQube
156156
commands:
157157
- checkout
158-
- sem-version java 11
158+
- if [[ $SEMAPHORE_GIT_BRANCH =~ ^7\..* ]]; then sem-version java 8; else sem-version java 17; fi
159159
- artifact pull workflow target-AMD
160160
- artifact pull workflow target-ARM
161161
- emit-sonarqube-data --run_only_sonar_scan

README.md

+23-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Kafka Streams Examples
22

3+
> [!NOTE]
4+
> This repo is replaced with [Confluent Tutorials for Apache Kafka](https://github.com/confluentinc/tutorials).
5+
We still "keep the lights on", but we don't improve existing examples any longer, nor do we add new example.
6+
37
This project contains code examples that demonstrate how to implement real-time applications and event-driven
48
microservices using the Streams API of [Apache Kafka](http://kafka.apache.org/) aka Kafka Streams.
59

@@ -254,17 +258,14 @@ If you are using Eclipse, you can also right-click on `pom.xml` file and choose
254258
255259
<a name="requirements-java"/>
256260
257-
## Java 8+
258-
259-
Some code examples require Java 8+, primarily because of the usage of
260-
[lambda expressions](https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html).
261+
## Java 17+
261262
262263
IntelliJ IDEA users:
263264
264265
* Open _File > Project structure_
265266
* Select "Project" on the left.
266-
* Set "Project SDK" to Java 1.8.
267-
* Set "Project language level" to "8 - Lambdas, type annotations, etc."
267+
* Set "Project SDK" to Java 17.
268+
* Set "Project language level" to "17 - Sealed types, always-strict floating-point semantics"
268269
269270
270271
<a name="requirements-scala"/>
@@ -274,11 +275,7 @@ IntelliJ IDEA users:
274275
> Scala is required only for the Scala examples in this repository. If you are a Java developer you can safely ignore
275276
> this section.
276277
277-
If you want to experiment with the Scala examples in this repository, you need a version of Scala that supports Java 8
278-
and SAM / Java lambda (e.g. Scala 2.11 with `-Xexperimental` compiler flag, or 2.12).
279-
280-
If you are compiling with Java 9+, you'll need to have Scala version 2.12+ to be compatible with the Java version.
281-
278+
If you want to experiment with the Scala examples in this repository, you need a version of Scala that supports Java 17.
282279
283280
<a name="packaging-and-running"/>
284281
@@ -300,10 +297,13 @@ In a nutshell:
300297
```shell
301298
# Ensure you have downloaded and installed Confluent Platform as per the Quickstart instructions above.
302299
303-
# Start ZooKeeper
304-
$ ./bin/zookeeper-server-start ./etc/kafka/zookeeper.properties
300+
#Generate a Cluster UUID
301+
$ KAFKA_CLUSTER_ID="$(bin/kafka-storage.sh random-uuid)"
305302
306-
# In a separate terminal, start Kafka broker
303+
#Format Log Directories
304+
$ bin/kafka-storage.sh format --standalone -t $KAFKA_CLUSTER_ID -c config/kraft/reconfig-server.properties
305+
306+
# Start the Kafka broker
307307
$ ./bin/kafka-server-start ./etc/kafka/server.properties
308308
309309
# In a separate terminal, start Confluent Schema Registry
@@ -378,17 +378,15 @@ $ mvn package # Packages the application examples into a standalone jar
378378

379379
| Branch (this repo) | Confluent Platform | Apache Kafka |
380380
| ----------------------------------------|--------------------|-------------------|
381-
| [5.4.x](../../../tree/5.4.x/)\* | 5.4.0-SNAPSHOT | 2.4.0-SNAPSHOT |
382-
| [5.3.0-post](../../../tree/5.3.0-post/) | 5.3.0 | 2.3.0 |
383-
| [5.2.2-post](../../../tree/5.2.2-post/) | 5.2.2 | 2.2.1 |
384-
| [5.2.1-post](../../../tree/5.2.1-post/) | 5.2.1 | 2.2.1 |
385-
| [5.1.0-post](../../../tree/5.1.0-post/) | 5.1.0 | 2.1.0 |
386-
| [5.0.0-post](../../../tree/5.0.0-post/) | 5.0.0 | 2.0.0 |
387-
| [4.1.0-post](../../../tree/4.1.0-post/) | 4.1.0 | 1.1.0 |
388-
| [4.0.0-post](../../../tree/4.4.0-post/) | 4.0.0 | 1.0.0 |
389-
| [3.3.0-post](../../../tree/3.3.0-post/) | 3.3.0 | 0.11.0 |
390-
391-
\*You must manually build the `2.3` version of Apache Kafka and the `5.3.x` version of Confluent Platform. See instructions above.
381+
| [master](../../../tree/master/)\* | 8.0.0-SNAPSHOT | 4.0.0-SNAPSHOT |
382+
| [7.9.x](../../../tree/7.9.x/) | 7.9.0-SNAPSHOT | 3.9.0 |
383+
| [7.8.0-post](../../../tree/7.8.0-post/) | 7.8.0 | 3.8.0 |
384+
| ... | | |
385+
| [7.1.0-post](../../../tree/7.1.0-post/) | 7.1.0 | 3.1.0 |
386+
387+
Older version prior to 7.1.0 are [not supported any longer](https://docs.confluent.io/platform/current/installation/versions-interoperability.html).
388+
389+
\*You must manually build the `4.0` version of Apache Kafka and the `8.0.0` version of Confluent Platform. See instructions above.
392390

393391
The `master` branch of this repository represents active development, and may require additional steps on your side to
394392
make it compile. Check this README as well as [pom.xml](pom.xml) for any such information.

pom.xml

+12-9
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<chill.version>0.9.5</chill.version>
5555
<docker.skip-build>false</docker.skip-build>
5656
<docker.skip-test>false</docker.skip-test>
57-
<java.version>11</java.version>
57+
<java.version>17</java.version>
5858
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5959
<scalatest.version>3.1.2</scalatest.version>
6060
<!-- The default is ubi8 -->
@@ -124,14 +124,6 @@
124124
<!-- This version must be compatible with the Scala version of the Kafka dependency. -->
125125
<version>${scala.version}</version>
126126
</dependency>
127-
<dependency>
128-
<!-- This could be a test-only dependency, but we keep it a compile dependency so that
129-
users are able to package the examples via `mvn package` and actually run the examples
130-
against a Kafka cluster. -->
131-
<groupId>com.101tec</groupId>
132-
<artifactId>zkclient</artifactId>
133-
<version>0.9</version>
134-
</dependency>
135127
<dependency>
136128
<groupId>org.slf4j</groupId>
137129
<artifactId>slf4j-reload4j</artifactId>
@@ -181,6 +173,11 @@
181173
<artifactId>jackson-databind</artifactId>
182174
<version>${jackson.version}</version>
183175
</dependency>
176+
<dependency>
177+
<groupId>jakarta.xml.bind</groupId>
178+
<artifactId>jakarta.xml.bind-api</artifactId>
179+
<version>4.0.1</version>
180+
</dependency>
184181
<!--
185182
This dependency is included to demonstrate the use of
186183
Confluent Monitoring Interceptors in conjunction with
@@ -241,6 +238,12 @@
241238
<classifier>test</classifier>
242239
<scope>test</scope>
243240
</dependency>
241+
<dependency>
242+
<groupId>org.apache.kafka</groupId>
243+
<artifactId>kafka-test-common-runtime</artifactId>
244+
<version>${kafka.version}</version>
245+
<scope>test</scope>
246+
</dependency>
244247
<dependency>
245248
<groupId>org.apache.kafka</groupId>
246249
<artifactId>kafka-streams-test-utils</artifactId>

0 commit comments

Comments
 (0)