3臺機器部署presto-server-0.173叢集
阿新 • • 發佈:2018-12-26
jvm.config
[email protected]:~/run/presto/etc$ cat jvm.config
-server
-Xmx1G
-XX:+UseConcMarkSweepGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+CMSClassUnloadingEnabled
-XX:+AggressiveOpts
-XX:+HeapDumpOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p
-XX:ReservedCodeCacheSize=150M
config.properties
[email protected]:~/run/presto/etc$ cat config.properties
coordinator=true
node-scheduler.include-coordinator=false
http-server.http.port=18080
#task.max-memory=8GB
discovery-server.enabled=true
discovery.uri=http://ubuntu1:18080
log.properties
[email protected]:~/run/presto/etc$ cat log.properties com.facebook.presto=INFO
Catalog Properties
[email protected]:~/run/presto/etc$ cat catalog/jmx.properties
connector.name=jmx
以上是單機部署presto, 至此已經完成。四. 在單機基礎上叢集部署presto
為了部署方便,直接將ubuntu1上的presto打包,拷貝到ubuntu2 ubuntu3主機上[email protected]:~/run$ tar -zcvf presto-server-0.173.tar.gz presto-server-0.173/
[email protected] :~/run$ scp presto-server-0.173.tar.gz ubuntu2:/home/bigdata/run/
presto-server-0.173.tar.gz 100% 391MB 27.9MB/s 00:14
[email protected]:~/run$ scp presto-server-0.173.tar.gz ubuntu3:/home/bigdata/run/
presto-server-0.173.tar.gz 100% 391MB 35.5MB/s 00:
修改ubuntu2和ubuntu3上的配置檔案 修改ubuntu2上config.properties,內容如下:
[email protected]:~/run/presto/etc$ cat config.properties
coordinator=false
http-server.http.port=18080
query.max-memory=1GB
discovery.uri=http://ubuntu1:18080
修改ubuntu2上node.properties,內容如下:[email protected]:~/run/presto/etc$ cat node.properties
node.environment=bigdata_prosto_cluster
node.id=bigdata_node_worker_ubuntu2
node.data-dir=/home/bigdata/run/presto/data
修改ubuntu3上config.properties,內容如下:
[email protected]:~/run/presto/etc$ cat config.properties
coordinator=false
http-server.http.port=18080
query.max-memory=1GB
discovery.uri=http://ubuntu1:18080
修改ubuntu3上node.properties,內容如下:[email protected]:~/run/presto/etc$ cat node.properties
node.environment=bigdata_prosto_cluster
node.id=bigdata_node_worker_ubuntu3
node.data-dir=/home/bigdata/run/presto/data
至此presto叢集部署完畢。
五. 啟動presto
在ubuntu1 ubuntu2 ubuntu3上分別執行啟動命令[email protected]:~/run/presto/bin$ ./launcher start
Started as 3122