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: docs/modules/kafka.md
+3-23Lines changed: 3 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,20 +15,18 @@ Currently, two different Kafka images are supported:
15
15
## Benefits
16
16
17
17
* Running a single node Kafka installation with just one line of code
18
-
* No need to manage external Zookeeper installation, required by Kafka. But see [below](#zookeeper)
18
+
* No need to manage external Zookeeper installation, required by Kafka.
19
19
20
20
## Example
21
21
22
-
### Using org.testcontainers.containers.KafkaContainer
22
+
### Using org.testcontainers.kafka.KafkaContainer
23
23
24
24
Create a `KafkaContainer` to use it in your tests:
25
25
26
26
<!--codeinclude-->
27
-
[Creating a KafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/containers/KafkaContainerTest.java) inside_block:constructorWithVersion
27
+
[Creating a KafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/kafka/KafkaContainerTest.java) inside_block:constructorWithVersion
28
28
<!--/codeinclude-->
29
29
30
-
The correspondence between Confluent Platform versions and Kafka versions can be seen [in Confluent documentation](https://docs.confluent.io/current/installation/versions-interoperability.html#cp-and-apache-kafka-compatibility)
31
-
32
30
Now your tests or any other process running on your machine can get access to running Kafka broker by using the following bootstrap server location:
33
31
34
32
<!--codeinclude-->
@@ -46,26 +44,8 @@ Create a `ConfluentKafkaContainer` to use it in your tests:
46
44
[Creating a ConfluentKafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/kafka/ConfluentKafkaContainerTest.java) inside_block:constructorWithVersion
47
45
<!--/codeinclude-->
48
46
49
-
### Using org.testcontainers.kafka.KafkaContainer
50
-
51
-
Create a `KafkaContainer` to use it in your tests:
52
-
53
-
<!--codeinclude-->
54
-
[Creating a KafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/kafka/KafkaContainerTest.java) inside_block:constructorWithVersion
55
-
<!--/codeinclude-->
56
-
57
47
## Options
58
48
59
-
### <aname="zookeeper"></a> Using external Zookeeper
60
-
61
-
!!! note
62
-
Only available for `org.testcontainers.containers.KafkaContainer`
63
-
64
-
If for some reason you want to use an externally running Zookeeper, then just pass its location during construction:
0 commit comments