一.presto安装配置
1.node.properties:
node.environment=prestoquery
node.id=yungang-0001(集群时:各服务器之间id要不同)
node.data-dir=/home/hadoop/data_presto/data
2.jvm.config:
-server
-Xmx16G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ExitOnOutOfMemoryError
-DHADOOP_USER_NAME=hadoop
3.config.propertis:
#如果presto只是安装一台机器上(既是coordinator又是worker),那么按照以下方式配置:
coordinator=true
node-scheduler.include-coordinator=true
#注意端口不要和hadoop,hive的冲突,配置之前可以使用netstat观察下
#在部署之前,至少应该有一份文档列出机器,ip,端口等等信息,包括路径,系统版本
http-server.http.port=8080
query.max-memory=50GB
query.max-memory-per-node=1GB
discovery-server.enabled=true
discovery.uri=http://master:8080
4.log.properties:
#正常之后,可以把DEBUG设置为其它数值: DEBUG,INFO,WARN,ERROR
com.facebook.presto=INFO
5.hive.properties (catalog目录下):
connector.name=hive-hadoop2
hive.metastore.uri=thrift://master:9083
如图:

二.presto运行与停止
$PRESTO_HOME/bin/launcher start? -- 后台运行
$PRESTO_HOME/bin/launcher run ? --日志运行
$PRESTO_HOME/bin/launcher stop? --停止
三.presto实战部分核心代码


四.页面展示

关于presto更多详细信息,请到官方网站。目前presto最新版本:0.205
云计算--Presto
原文:http://blog.51cto.com/13792382/2133982