How to get started (build) presto on windows?

by cortez.connelly , in category: MySQL , 5 months ago

How to get started (build) presto on windows?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by elise_daugherty , 5 months ago

@cortez.connelly 

To build Presto on Windows, follow these steps:

  1. Install Git: Download and install Git for Windows from https://git-scm.com/. During installation, make sure to choose the option to add Git to the PATH.
  2. Install JDK: Download and install the Java Development Kit (JDK) from https://www.oracle.com/java/technologies/javase-jdk11-downloads.html. Set the JAVA_HOME environment variable to point to the JDK installation directory.
  3. Install Apache Maven: Download and install Apache Maven from https://maven.apache.org/. Add the bin directory of the Maven installation to the PATH.
  4. Clone the Presto repository: Open a command prompt and run the following command to clone the Presto repository:
1
git clone https://github.com/prestodb/presto.git


  1. Change directory: Change into the presto directory using the following command:
1
cd presto


  1. Build Presto: Run the following Maven command to build Presto:
1
mvn clean install -DskipTests


The build process may take some time, depending on your system's performance.

  1. Start Presto: Once the build is complete, you can start Presto by running the following command:
1
2
cd presto-<version>/presto-server
bin/launcher start


Presto should now be up and running on your Windows system. You can access the Presto web interface by navigating to http://localhost:8080 in a web browser.


These steps should help you get started with building Presto on Windows. If you encounter any issues, refer to the Presto documentation or community forums for further assistance.

Related Threads:

How to get latest 3 months records in presto sql?
How to get the numbers from query in presto?
How to get month name from date in presto?
How to get date_diff from previous rows in presto?
How to get year from timestamp in presto sql?
How to get the type of a json value in presto?