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
Last Article: Sample Code Description
Next Article: Presto APIs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.