[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3989":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},3989,"presto","prestodb\u002Fpresto","prestodb","The official home of the Presto distributed SQL query engine for big data","http:\u002F\u002Fprestodb.io",null,"Java",16712,5540,821,1954,0,4,22,1,45,"Apache License 2.0",false,"master",true,[26,27,28,29,30,31,5,32,33],"big-data","data","hadoop","hive","java","lakehouse","query","sql","2026-06-12 02:00:57","# Presto\n\n[![LFX Health Score](https:\u002F\u002Finsights.linuxfoundation.org\u002Fapi\u002Fbadge\u002Fhealth-score?project=presto)](https:\u002F\u002Finsights.linuxfoundation.org\u002Fproject\u002Fpresto)\n\nPresto is a distributed SQL query engine for big data.\n\nSee the [Presto installation documentation](https:\u002F\u002Fprestodb.io\u002Fdocs\u002Fcurrent\u002Finstallation.html) for deployment instructions.\n\nSee the [Presto documentation](https:\u002F\u002Fprestodb.io\u002Fdocs\u002Fcurrent\u002F) for general documentation.\n\n\n## Mission and Architecture\n\nSee [PrestoDB: Mission and Architecture](ARCHITECTURE.md).\n\n## Requirements\n\n* Mac OS X or Linux\n* Java 17 64-bit. Both Oracle JDK and OpenJDK are supported.\n* Maven 3.6.3+ (for building)\n* Python 2.4+ (for running with the launcher script)\n\n\u003Cdetails> \u003C!-- from: https:\u002F\u002Fgithub.com\u002Fprestodb\u002Fpresto\u002Fblob\u002Fmaster\u002FREADME.md -->\n  \u003Csummary>\u003Ca id=\"building-presto\">\u003Ch2>Building Presto\u003C\u002Fh2>\u003C\u002Fa>\u003C\u002Fsummary>\n\n### Overview (Java)\n\nPresto is a standard Maven project. Simply run the following command from the project root directory:\n\n    .\u002Fmvnw clean install\n\nOn the first build, Maven will download all the dependencies from the internet and cache them in the local repository (`~\u002F.m2\u002Frepository`), which can take a considerable amount of time. Subsequent builds will be faster.\n\nWhen 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\u002Fmaven.config` to support a local cache specific to that project via `-Dmaven.repo.local=.\u002F.m2\u002Frepository`.\n\nPresto has a comprehensive set of unit tests that can take several minutes to run. You can disable the tests when building:\n\n    .\u002Fmvnw clean install -DskipTests\n\nAfter building Presto for the first time, you can load the project into your IDE and run the server. We recommend using [IntelliJ IDEA](http:\u002F\u002Fwww.jetbrains.com\u002Fidea\u002F). 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.\n\nAfter opening the project in IntelliJ, double check that the Java SDK is properly configured for the project:\n\n* Open the File menu and select Project Structure\n* In the SDKs section, ensure that a distribution of JDK 17 is selected (create one if none exist)\n* In the Project section, ensure the Project language level is set to at least 8.0.\n* When using JDK 17, an [IntelliJ bug](https:\u002F\u002Fyoutrack.jetbrains.com\u002Fissue\u002FIDEA-201168) requires you\n  to disable the `Use '--release' option for cross-compilation (Java 9 and later)` setting in\n  `Settings > Build, Execution, Deployment > Compiler > Java Compiler`. If this option remains enabled,\n  you may encounter errors such as: `package sun.misc does not exist` because IntelliJ fails to resolve\n  certain internal JDK classes.\n\nPresto comes with sample configuration that should work out-of-the-box for development. Use the following options to create a run configuration:\n\n* Main Class: `com.facebook.presto.server.PrestoServer`\n* VM Options: `-ea -XX:+UseG1GC -XX:G1HeapRegionSize=32M -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -Xmx2G -Dconfig=etc\u002Fconfig.properties -Dlog.levels-file=etc\u002Flog.properties -Djdk.attach.allowAttachSelf=true`\n* Working directory: `$MODULE_WORKING_DIR$` or `$MODULE_DIR$`(Depends your version of IntelliJ)\n* Use classpath of module: `presto-main`\n\nThe working directory should be the `presto-main` subdirectory. In IntelliJ, using `$MODULE_DIR$` accomplishes this automatically.\n\nAdditionally, the Hive plugin must be configured with location of your Hive metastore Thrift service. Add the following to the list of VM options, replacing `localhost:9083` with the correct host and port (or use the below value if you do not have a Hive metastore):\n\n    -Dhive.metastore.uri=thrift:\u002F\u002Flocalhost:9083\n\nTo modify the loaded plugins in IntelliJ, modify the `config.properties` located in `presto-main\u002Fetc`. You can modify `plugin.bundles` with the location of the plugin pom.xml\n\n### Additional configuration for Java 17\n\nWhen running with Java 17, additional `--add-opens` flags are required to allow reflective access used by certain catalogs based on which catalogs are configured.\nFor the default set of catalogs loaded when starting the Presto server in IntelliJ without changes, add the following flags to the **VM Options**:\n\n    --add-opens=java.base\u002Fjava.io=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.lang=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.lang.ref=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.lang.reflect=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.net=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.nio=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.security=ALL-UNNAMED\n    --add-opens=java.base\u002Fjavax.security.auth=ALL-UNNAMED\n    --add-opens=java.base\u002Fjavax.security.auth.login=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.text=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.util=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.util.concurrent=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.util.concurrent.atomic=ALL-UNNAMED\n    --add-opens=java.base\u002Fjava.util.regex=ALL-UNNAMED\n    --add-opens=java.base\u002Fjdk.internal.loader=ALL-UNNAMED\n    --add-opens=java.base\u002Fsun.security.action=ALL-UNNAMED\n    --add-opens=java.security.jgss\u002Fsun.security.krb5=ALL-UNNAMED\n\nThese flags ensure that internal JDK modules are accessible at runtime for components used by Presto’s default configuration.\nIt is not a comprehensive list. Additional flags may need to be added, depending on the catalogs configured on the server.\n\n### Using SOCKS for Hive or HDFS\n\nIf your Hive metastore or HDFS cluster is not directly accessible to your local machine, you can use SSH port forwarding to access it. Setup a dynamic SOCKS proxy with SSH listening on local port 1080:\n\n    ssh -v -N -D 1080 server\n\nThen add the following to the list of VM options:\n\n    -Dhive.metastore.thrift.client.socks-proxy=localhost:1080\n\n### Running the CLI\n\nStart the CLI to connect to the server and run SQL queries:\n\n    presto-cli\u002Ftarget\u002Fpresto-cli-*-executable.jar\n\nRun a query to see the nodes in the cluster:\n\n    SELECT * FROM system.runtime.nodes;\n\nIn the sample configuration, the Hive connector is mounted in the `hive` catalog, so you can run the following queries to show the tables in the Hive database `default`:\n\n    SHOW TABLES FROM hive.default;\n\n### Building the Documentation\n\nTo build the Presto docs, see the [docs README](presto-docs\u002FREADME.md).\n\n### Building the Presto Console\n\nThe Presto Console is composed of several React components and is written in JSX and ES6. This\nsource code is stored in the `presto-ui\u002F` module. The compilation process generates\nbrowser-compatible javascript which is added as JAR resources during the maven build. When the\nresource JAR is included on the classpath of Presto coordinator, it will be able to serve the\nresources.\n\nNone of the Java code relies on the Presto UI project being compiled, so it is possible to exclude\nthis UI when building Presto. Add the property `-DskipUI` to the maven command to disable building\nthe `ui` maven module.\n\n    .\u002Fmvnw clean install -DskipUI\n\nYou must have [Node.js](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F) and [Yarn](https:\u002F\u002Fyarnpkg.com\u002Fen\u002F) installed to build the UI. When using  Maven to build\nthe project, Node and yarn are installed in the `presto-ui\u002Ftarget` folder. Add the node and yarn\nexecutables to the `PATH` environment variable.\n\nTo update Presto Console after making changes, run:\n\n    yarn --cwd presto-ui\u002Fsrc install\n\nTo simplify iteration, you can also run in `watch` mode, which automatically re-compiles when\nchanges to source files are detected:\n\n    yarn --cwd presto-ui\u002Fsrc run watch\n\nTo iterate quickly, simply re-build the project in IntelliJ after packaging is complete. Project\nresources will be hot-reloaded and changes are reflected on browser refresh.\n\n## Presto native and Velox\n\n[Presto native](https:\u002F\u002Fgithub.com\u002Fprestodb\u002Fpresto\u002Ftree\u002Fmaster\u002Fpresto-native-execution) is a C++ rewrite of Presto worker. [Presto native](https:\u002F\u002Fgithub.com\u002Fprestodb\u002Fpresto\u002Ftree\u002Fmaster\u002Fpresto-native-execution) uses [Velox](https:\u002F\u002Fgithub.com\u002Ffacebookincubator\u002Fvelox) as its primary engine to run presto workloads.\n\n[Velox](https:\u002F\u002Fgithub.com\u002Ffacebookincubator\u002Fvelox) is a C++ database library which provides reusable, extensible, and high-performance data processing components.\n\nCheck out [building instructions](https:\u002F\u002Fgithub.com\u002Fprestodb\u002Fpresto\u002Ftree\u002Fmaster\u002Fpresto-native-execution#build-from-source) to get started.\n\n## Using development containers\n\nThe PrestoDB project provides support for development containers in its own repository.\nPlease visit the [presto-dev README](https:\u002F\u002Fgithub.com\u002Fprestodb\u002Fpresto-dev\u002Fblob\u002Fmain\u002FREADME.md) for details.\n\n\u003Chr>\n\u003C\u002Fdetails>\n\n\n## Contributing!\n\nPlease refer to the [contribution guidelines](https:\u002F\u002Fgithub.com\u002Fprestodb\u002Fpresto\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md) to get started.\n\n## Questions?\n\n[Please join our Slack channel and ask in `#dev`](https:\u002F\u002Fcommunityinviter.com\u002Fapps\u002Fprestodb\u002Fprestodb).\n\n## License\n\nBy contributing to Presto, you agree that your contributions will be licensed under the [Apache License Version 2.0 (APLv2)](LICENSE).\n\n","Presto 是一个用于大数据的分布式SQL查询引擎。它支持对大规模数据集进行快速高效的查询处理，具有高度可扩展性和高性能的特点，能够在Hadoop、Hive等大数据存储系统上运行复杂的SQL查询。Presto 采用Java编写，支持多种数据源接入，并能够执行跨数据源的联合查询。适用于需要对PB级数据进行实时分析的企业级应用场景，如在线广告分析、日志处理和商业智能报告生成等。其开源社区活跃，遵循Apache License 2.0许可协议。",2,"2026-06-11 02:57:36","top_language"]