Help Center/ MapReduce Service/ Developer Guide (LTS)/ Kafka Development Guide (Normal Mode)/ Application Commissioning/ Commissioning an Application in Windows
Updated on 2022-11-18 GMT+08:00
Commissioning an Application in Windows
Starting Producer
- Ensure that the mappings between the host names and service IP addresses of all the hosts in the remote cluster are configured in the local hosts file.
- Run Producer.java on IntelliJ IDEA, as shown in Figure 1.
- The console window appears. You can find that Producer is sending messages to the default topic (example-metric1). One piece of log is printed when every 10 messages are sent. Figure 2 Proceducer running window
Starting Consumer
- Run the Consumer.java file.
- Click Run. In the console window that appears, you can find that Producer starts after Consumer successfully starts, and then you can view messages received in real time. Figure 3 Consumer.java running window
Starting Other Code Samples
The procedures for starting other code samples are similar to the procedures for starting Producer and Consumer in this section.
Parent topic: Application Commissioning
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.
