Help Center/
MapReduce Service/
Developer Guide (Normal_3.x)/
Presto Development Guide (Normal Mode)/
Commissioning the Application
Updated on 2022-09-14 GMT+08:00
Commissioning the Application
Running the JDBC Client and Viewing Results
- Run the mvn clean compile assembly:single command to generate a JAR file and obtain it from the target directory in the project directory, for example, presto-examples-1.0-SNAPSHOT-jar-with-dependencies.jar.
- Create a directory as the running directory in the running and commissioning environment, for example, /opt/presto_examples (Linux), and create the conf subdirectory in the directory.
Copy presto-examples-1.0-SNAPSHOT-jar-with-dependencies.jar exported in 1 to /opt/presto_examples.
- In Linux, run the sample program.
chmod +x /opt/presto_examples -R cd /opt/presto_examples java -jar presto-examples-1.0-SNAPSHOT-jar-with-dependencies.jar
- In the CLI, view the query results of the example code.
If the following information is displayed, the sample project execution is successful in Linux.
NY Metro : 2 Mid Atlantic : 6 Mid Atlantic : 6 North Midwest : 1 North Midwest : 3 North Midwest : 7
Parent topic: Presto Development Guide (Normal Mode)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.