雲計算--Presto

一.presto安裝配置
1.node.properties:
node.environment=prestoquery
node.id=yungang-0001(集羣時:各服務器之間id要不同)
node.data-dir=/home/hadoop/data_presto/data
2.jvm.config:
-server
-Xmx16G
-XX:+UseG1GC
-XX:G1HeapRegionSize=32M
-XX:+UseGCOverheadLimit
-XX:+ExplicitGCInvokesConcurrent
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ExitOnOutOfMemoryError
-DHADOOP_USER_NAME=hadoop
3.config.propertis:
#如果presto只是安裝一臺機器上(既是coordinator又是worker),那麼按照以下方式配置:
coordinator=true
node-scheduler.include-coordinator=true
#注意端口不要和hadoop,hive的衝突,配置之前可以使用netstat觀察下
#在部署之前,至少應該有一份文檔列出機器,ip,端口等等信息,包括路徑,系統版本
http-server.http.port=8080
query.max-memory=50GB
query.max-memory-per-node=1GB
discovery-server.enabled=true
discovery.uri=http://master:8080

4.log.properties:
#正常之後,可以把DEBUG設置爲其它數值: DEBUG,INFO,WARN,ERROR
com.facebook.presto=INFO
5.hive.properties (catalog目錄下):

connector.name=hive-hadoop2
hive.metastore.uri=thrift://master:9083
如圖:
雲計算--Presto

二.presto運行與停止
$PRESTO_HOME/bin/launcher start  -- 後臺運行
$PRESTO_HOME/bin/launcher run   --日誌運行
$PRESTO_HOME/bin/launcher stop  --停止

三.presto實戰部分核心代碼
雲計算--Presto
雲計算--Presto

四.頁面展示
雲計算--Presto

關於presto更多詳細信息,請到官方網站。目前presto最新版本:0.205

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章