Presto安装和部署

(1)官网下载安装包

presto-server-0.196.tar.gz        
presto-cli-0.196-executable.jar

(2)解压
(3)创建Presto的日志目录
mkdir -p /home/hadoop/presto_data
(4)在Presto安装目录下创建etc目录

mkdir -p /home/hadoop/app/presto-server-0.196/etc

(5)在Presto的etc目录下创建四个配置文件:
1)node.properties

node.environment=production
node.id=ffffffff-ffff-ffff-ffff-ffffffffffff-001
node.data-dir=/home/hadoop/presto_data

2)jvm.properties

-server
-Xmx4G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit

3)config.properties

coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
query.max-memory=2GB
query.max-memory-per-node=1GB
query.max-total-memory-per-node=2GB
discovery-server.enabled=true
discovery.uri=http://hadoop000:8080

4)log.properties

com.facebook.presto=INFO

(6)在Presto的etc目录下创建catalog目录

mkdir -p /home/hadoop/app/presto-server-0.196/etc/catalog

(7)在Presto的/etc/catalog目录下创建jmx.properties,加入以下内容:

connector.name=jmx

(8)启动Presto
前端运行:

/home/hadoop/app/presto-server-0.196/bin/launcher run

后端运行:

/home/hadoop/app/presto-server-0.196/bin/launcher start

报错:Configuration property 'query.max-total-memory-per-node' was not used

解决方案:注释掉config.properties中的

query.max-total-memory-per-node=2GB

(9)查看Presto WebUI
hadoop000:8080

你可能感兴趣的:(Presto)