Help Center/
MapReduce Service/
Developer Guide (Normal_Earlier Than 3.x)/
Kafka Development Guide/
Preparing a Kafka Application Development Environment/
Importing and Configuring Kafka Sample Projects
Updated on 2024-08-16 GMT+08:00
Importing and Configuring Kafka Sample Projects
Procedure
- Download the sample project to the local computer by referring to Obtaining the MRS Application Development Sample Project.
- Decompress the sample project and locate the kafka-examples directory.
- Import the sample project to the Eclipse development environment.
- Start Eclipse and choose File > Import. In the Import dialog box, select Existing Maven Projects, and click next.
- Click Browse in the Import Maven Projects window. The Select Root Folder dialog box is displayed.
- Select the kafka-examples sample project folder, and click OK.
- Click Finish in the Import Maven Projects window.
- Set an Eclipse text file encoding format to prevent garbled characters.
- On the Eclipse menu bar, choose Window > Preferences.
The Preferences window is displayed.
- In the navigation tree, choose General > Workspace. In the Text file encoding area, select Other and set the value to UTF-8. Click Apply and then OK. Figure 1 shows the settings.
- On the Eclipse menu bar, choose Window > Preferences.
Parent topic: Preparing a Kafka Application Development Environment
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot