Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hello-kafka
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
go-exercises
hello-kafka
Commits
048075e4
Commit
048075e4
authored
2 years ago
by
Martin Schmollinger
Browse files
Options
Downloads
Patches
Plain Diff
Added README.md
parent
e380aa4e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-0
21 additions, 0 deletions
README.md
with
21 additions
and
0 deletions
README.md
0 → 100644
+
21
−
0
View file @
048075e4
# Just start hello-kafka using docker compose
> docker compose up --build
The hello-kafka container will exit after submiting and receiving a message to kafka. The kafka container will go on.
# Stop hello-kafka
> docker compose down
Look at the log file of container hello-kafka.
## Output schould be similar to that:
``202##3-05-11 18:57:27 wait-for-it.sh: waiting 20 seconds for kafka:9092
2023-05-11 18:57:37 wait-for-it.sh: kafka:9092 is available after 10 seconds
2023-05-11 18:57:37 2023/05/11 16:57:37 Topic 'hello-kafka' with 1 partitions successfully created
2023-05-11 18:57:37 time="2023-05-11T16:57:37Z" level=info msg="Send message 'Hello Kafka!' to topic 'hello-kafka'\n"
2023-05-11 18:57:38 time="2023-05-11T16:57:38Z" level=info msg="Successfully send message 'Hello Kafka!' to topic 'hello-kafka'\n"
2023-05-11 18:57:38 time="2023-05-11T16:57:38Z" level=info msg="Start reading message from topic 'hello-kafka'"
2023-05-11 18:57:38 time="2023-05-11T16:57:38Z" level=info msg="Received message from topic 'hello-kafka' at partition 0, offset 0: Hello Kafka!\n"``
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment