Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
order-management-backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
order-management-backend
Commits
38309ff6
Commit
38309ff6
authored
May 10, 2021
by
Shanelle Valencia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
9cfefa7f
Pipeline
#1680
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
README.md
README.md
+16
-0
No files found.
README.md
View file @
38309ff6
...
...
@@ -58,3 +58,19 @@ Example Console Response:
2021-05-05 17:13:29.932 INFO 82715 --- [ntainer#0-0-C-1] c.afp.ordermanagement.service.Consumer : #### -> Consumed message -> somethinghere
```
## Testing Kafka Producer and Consumer
Make sure Kafka server and zookeeper are running
To create a kafka topic:
kafka-topics.sh --describe --topic
<insert-topic-here>
--bootstrap-server localhost:9092
if the first command doesn't work, try running below command:
/usr/local/Cellar/kafka/2.8.0/bin/kafka-topics --describe --topic orders --bootstrap-server localhost:9092
To open a producer console:
kafka-console-producer.sh --topic orders --bootstrap-server localhost:9092
-OR-
/usr/local/Cellar/kafka/2.8.0/bin/kafka-console-producer --topic orders --bootstrap-server localhost:9092
To open a consumer console:
kafka-console-consumer.sh --topic orders --from-beginning --bootstrap-server localhost:9092
-OR-
/usr/local/Cellar/kafka/2.8.0/bin/kafka-console-consumer --topic orders --from-beginning --bootstrap-server localhost:9092
if pathway is still not found, try "ls -alrth /usr/local/Cellar/kafka" until you get to the bin directory which has all the kafka commands
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment