一、环境准备
1.使用pulsar包中自带的presto,无需再下载presto。
2.三节点集群,一台coordinator,两台worker。
3.每台节点需要各自修改两个配置文件,pulsar-2.7.1/conf/presto/config.properties,pulsar-2.7.1/conf/presto/catalog/pulsar.properties
二、配置集群
1.修改coordinator节点配置文件
cd pulsar-2.7.1/conf/presto/config.properties
node.id=ffffffff-ffff-ffff-ffff-fffffffffffe #三台节点的ID不能相同
node.environment=test #环境名三台节点保持相同
coordinator=true #true表示指定当前节点为coordinator
node-scheduler.include-coordinator=true
http-server.http.port=18081
query.max-memory=50GB
query.max-memory-per-node=1GB
discovery-server.enabled=true
discovery.uri=http://192.168.1.214:18081 #指定地址
2.修改另外两台worker的配置文件
cd pulsar-2.7.1/conf/presto/config.properties
node.id=ffffffff-ffff-ffff-ffff-fffffffffffe #三台节点的ID不能相同
node.environment=test #环境名三台节点保持相同
coordinator=false #true表示指定当前节点为coordinator
node-scheduler.include-coordinator=true
http-server.http.port=18081
query.max-memory=50GB
query.max-memory-per-node=1GB
discovery.uri=http://192.168.1.214:18081 #指定地址为coordinator地址
以下配置注释掉:
#discovery-server.enabled=true
#scheduler.http-client.max-connections=1000
#scheduler.http-client.max-connections-per-server=1000
#scheduler.http-client.connect-timeout=1m
#scheduler.http-client.idle-timeout=