Presto 官网 http://prestodb.io/overview.html
Presto用于大数据挖掘工具,语法与功能都类似hive,但速度比hive更快,因为他是交互式的,实时性非常强
Presto本身提供jdk进行访问,请参考
http://blog.csdn.net/exception_ex/article/details/17056139
Presto 单机版请参考
http://blog.csdn.net/luyee2010/article/details/16849295
Presto 分布式搭建
之前单机版,presto server中自带了一个简易的discover服务,默认是8080,当在真正分布式环境下,就需要正在的discover工具了。
1.安装discover服务(http://prestodb.io/docs/current/installation/discovery.html),下载并解压在master机器上,按照网址上进行配置,注意保证node.properties中node.id的唯一性
2.修改master中config.properties的discover-url,discovery.uri=http://master.net:8411
3.启动discover服务,bin/launcher start
4.首先把单机上的presto整个文件夹拷到work中
5.在work上把data文件删除,否则launch时会出错
6.在work上,修改node.properties中ID,保证唯一性。可以在linux下采用:uuidgen命令生成uuid
7.在work上,修改config.properties, coordinator=true 改为false, discovery-server.enabled=true删除掉
8.在master和work上都启动presto
9.进入presto之后,输入查询语句,在运行结果中我们可以看到所用到的节点数量
以上方式,叙述简单,如有不明白,请参考其他安装方法:
http://yugouai.iteye.com/blog/2002504
http://www.dw4e.com/?p=141