prestodb /presto

The official home of the Presto distributed SQL query engine for big data

★ 16,774⑂ 5,551👁 814⑃ 21,245● 7,400▤ 19
JavaApache-2.0Created 2012-08-09prestodb.io
下载:Presto 0.300Presto-0.300 ↓0.3002026-11-04
+0
日增长
16,774
stars
5,551
forks
814
watchers
21,245
prs
7,400
issues
19
releases

README

Presto



Presto is a distributed SQL query engine for big data.

See the Presto installation documentation for deployment instructions.

See the Presto documentation for general documentation.


 Mission and Architecture

See PrestoDB: Mission and Architecture.

 Requirements

 Mac OS X or Linux
 Java 17 64-bit. Both Oracle JDK and OpenJDK are supported.
 Maven 3.6.3+ (for building)
 Python 2.4+ (for running with the launcher script)

 
  Building Presto

 Overview (Java)

Presto is a standard Maven project. Simply run the following command from the project root directory:

    ./mvnw clean install

On the first build, Maven will download all the dependencies from the internet and cache them in the local repository (~/.m2/repository), which can take a considerable amount of time. Subsequent builds will be faster.

When building multiple Presto projects locally, each project may write updates to the user's global M2 cache, which could cause build issues. You can configure your local .mvn/maven.config to support a local cache specific to that project via -Dmaven.repo.local=./.m2/repository.

Presto has a comprehensive set of unit tests that can take several minutes to run. You can disable the tests when building:

    ./mvnw clean install -DskipTests

After building Presto for the first time, you can load the project into your IDE and run the server. We recommend using IntelliJ IDEA. Because Presto is a standard Maven project, you can import it into your IDE using the root pom.xml file. In IntelliJ, choose Open Project from the Quick Start box or choose Open from the File menu and select the root pom.xml file.

After opening the project in IntelliJ, double check that the Java SDK is properly configured for the project:

 Open the File menu and select Project Structure
 In the SDKs section, ensure that a distribution of JDK 17 is selected (create one if none exist)
 In the Project section, ensure the Project language level is set to at least 8.0.
 When using JDK 17, an IntelliJ bug requires you
  to disable the Use '--release' option for cross-compilation (Java 9 and later) setting in
  Settings  Build, Execution, Deployment  Compiler  Java Compiler. If this option remains enabled,
  you may encounter errors such as: package sun.misc does not exist because IntelliJ fails to resolve
  certain internal JDK classes.

Presto comes with sample configuration that should work out-of-the-box for development. Use the following options to create a run configuration:

 Main Class: com.facebook.presto.server.PrestoServer
 VM Options: -ea -XX:+UseG1GC -XX:G1HeapRegionSize=32M -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -Xmx2G -Dconfig=etc/config.properties -Dlog.levels-file=etc/log.properties -Djdk.attach.allowAttachSelf=true
 Working directory: $MODULE_WORKING_DIR$ or $MODULE_DIR$(Depends your version of IntelliJ)
 Use classpath of module: presto-main

The working directory should be the presto-main subdirectory. In IntelliJ, using $MODULE_DIR$ ac

Top issues

Discussions

Latest release

Presto 0.300 0.300 2026-11-04
See the release notes at https://prestodb.io/docs/current/release/release-0.300.html

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON