Configuring and Importing a Sample Project
Prerequisites
Ensure that the time difference between a local computer and the MRS cluster is less than 5 minutes. Time of the MRS cluster can be viewed in the upper right corner on the MRS Manager page. See Figure 1.
Procedure
- Obtain the OpenTSDB sample project. Obtaining a Sample Project provides the address.
- In the root directory of the OpenTSDB sample project, run the mvn install command to perform compilation.
- In the root directory of the OpenTSDB sample project, run the mvn eclipse:eclipse command to create an Eclipse project.
- In the application development environment, import the sample project to the Eclipse development environment.
- Choose File > Import > General > Existing Projects into Workspace > Next > Browse.
The Browse Folder dialog box is displayed.
- Select the sample project folder, and click Finish.
- Choose File > Import > General > Existing Projects into Workspace > Next > Browse.
- 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 2 shows the settings.
Setting the Eclipse encoding format
- On the Eclipse menu bar, choose Window > Preferences.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.