Updated on 2022-09-14 GMT+08:00

Commissioning the Application

Running the JDBC Client and Viewing Results

  1. 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.
  2. 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.

  3. 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

  4. 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