presto安装介绍

Presto是一个开源的分布式SQL查询引擎,适用于交互式分析查询,数据量支持GB到PB字节。

中文网地址: http://prestodb-china.com/
官方地址: https://prestodb.io/

下载后重命名为presto-cli,并添加执行权限chmod u+x 
./presto --server localhost:8080 --catalog hive --schema default

presto要求jdk的版本为jdk8
1、解压后在presto-server中创建配置文件目录:mkdir etc
2、增加配置文件
config.properties:(coordinator节点)
coordinator=true
node-scheduler.include-coordinator=false
http-server.http.port=8080
query.max-memory=500GB
query.max-memory-per-node=8GB
task.max-worker-threads=40
distributed-joins-enabled=true
discovery-server.enabled=true
discovery.uri= http://c4node3:8080

config.properties:(worker节点)
coordinator=false
http-server.http.port=8080
query.max-memory=500GB
query.max-memory-per-node=8GB
task.max-worker-threads=40
distributed-joins-enabled=true
discovery.uri= http://c4node3:8080

jvm.config:
-server
-Xmx16G
-XX:+UseConcMarkSweepGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+CMSClassUnloadingEnabled
-XX:+AggressiveOpts
-XX:+HeapDumpOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p
-XX:ReservedCodeCacheSize=150M

node.properties:
node.environment=bbd(不能包含特殊字符)
node.id=c4node3(每个节点ID不同)
node.data-dir=/data1/bbdhadoop/bbdhadoop/presto/data


log.properties:
com.facebook.presto=INFO

3、配置链接器
创建连接器目录:mkdir etc/catalog
catalog/hive.properties
connector.name=hive-cdh5
hive.metastore.uri=thrift://c4namenode2:9083
hive.config.resources=/etc/hadoop/conf/core-site.xml,/etc/hadoop/conf/hdfs-site.xml

4、启动
./presto-server-0.139/bin/launcher stop;
后台运行:
./presto-server-0.139/bin/launcher start;
前台运行:(新添加的配置需要前台启动查看是否出错,有些参数版本不同时是不兼容的)
./presto-server-0.139/bin/launcher run
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值