Presto分布式大数据SQL查询引擎.
中文用户手册请点击.
- Mac OS X or Linux
- Java 8, 64-bit
- Maven 3.1.1+ (for building)
- Python 2.4+ (for running with the launcher script)
Presto是一个标准的maven project,在工程的根目录执行以下命令进行编译:
mvn clean install
第一次运行编译时,将会自动下载所有的maven依赖库并缓存到本地:(~/.m2/repository
), 可能会需要较长时间,随后编译速度会大大加快.
Presto拥有全部的单元测试类,执行此操作可能需要一些时间,可以通过以下编译命令来跳过这些测试类:
mvn clean install -DskipTests
启动CLI连接Presto Server并提交SQL查询:
presto-cli/target/presto-cli-*-executable.jar
查看Presto集群的节点信息:
SELECT * FROM system.runtime.nodes;
依照样例配置后,可以执行以下命令列出Hive连接器中的default库中的表信息:
SHOW TABLES FROM hive.default;