日期:2014-05-16  浏览次数:20626 次

FaceBook PrestoDB 瀹夎鏂囨。

涓昏鏄牴鎹畼缃戝唴瀹归厤缃紝Presto璇︾粏鐨勫唴瀹瑰彲鍙傝€?a target="_blank" title="prestodb瀹樼綉" href="/admin/blogs/prestodb.io">瀹樼綉

鍗曟満瀹夎

1銆佷笅杞?a class="reference external" href="http://central.maven.org/maven2/com/facebook/presto/presto-server/0.56/presto-server-0.56.tar.gz" style="font-weight: bold; color: #3b5998; font-family: 'Helvetica Neue', Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 16px; line-height: 24px; text-align: justify;">presto-server-0.56.tar.gz锛岃В鍘嬪悗鍦ㄦ枃浠跺す閲屽垱寤篹tc鐩綍

鍦╡tc涓嬪垱寤轰竴涓嬫枃浠朵笌鐩綍锛?/p>

config.properties 锛毬燩resto 鏈嶅姟閰嶇疆

jvm.config 锛毬燡ava铏氭嫙鏈虹殑鍛戒护琛岄€夐」聽
log.properties 锛?鏃ュ織淇℃伅

node.properties 锛毬犵幆澧冨彉閲忛厤缃紝姣忎釜鑺傜偣鐗瑰畾閰嶇疆

catalog鐩綍 锛毬犳瘡涓繛鎺ヨ€呴厤缃紙data sources锛?/p>

锛?锛夌浉鍏虫枃浠堕厤缃俊鎭?/p>

config.properties

coordinator=true
datasources=jmx,hive
http-server.http.port=8080
presto-metastore.db.type=h2
presto-metastore.db.filename=var/db/MetaStore
task.max-memory=1GB
discovery-server.enabled=true
discovery.uri=http://localhost:8080 

聽 聽聽datasources锛氭寚瀹氬涓猚atalog names锛岄€氳繃閫楀彿鍒嗗壊锛宑oordinator 涓?workers鍧囧惈鏈塉MX鏉ヨ鍙朖ava鐩稿叧閰嶇疆淇℃伅锛屽彟澶栧彲浠ラ厤缃甴ive绛変俊鎭紝褰撶劧coordinator鏈€濂戒笉閰嶇疆hive锛屽噺灏戝崗璋冨櫒鐨勮礋杞?/p>

聽聽聽聽http-server.http.port锛歅resto閫氳繃Http鍗忚杩涜浜や簰锛屽垯閰嶇疆璇ョ鍙h繘琛屼俊鎭氦浜?/p>

聽 聽 presto-metastore.db.filename锛歅resto浣跨敤h2淇濆瓨metadata锛岃閰嶇疆鏄痟2淇濆瓨鐨勬湰鍦版枃浠跺瓨鍌?/p>

聽 聽 task.max-memory锛氳妭鐐逛腑浠诲姟浣跨敤鏈€澶х殑鍐呭瓨锛岃鍙傛暟瀵规煡璇㈡搷浣滄湁涓€瀹氱殑绾︽潫

聽 聽 discovery-server.enabled锛歅resto浣跨敤 Discovery service鏉ュ畾浣嶉泦缇や腑鎵€鏈夌殑鑺傜偣銆傚惎鍔ㄥ疄渚嬪悗鍚慏iscovery service娉ㄥ唽銆俢oordinator杩愯鍦ㄥ祵鍏ュ紡鐨凞iscovery service

聽聽聽聽discovery.uri锛欴iscovery server鐨刄RI锛屽崟鏈虹増閰嶇疆鑷韩灏監K

jvm.config

-server
-Xmx16G
-XX:+UseConcMarkSweepGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+CMSClassUnloadingEnabled
-XX:+AggressiveOpts
-XX:+HeapDumpOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p
-XX:PermSize=150M
-XX:MaxPermSize=150M
-XX:ReservedCodeCacheSize=150M
-Xbootclasspath/p:/home/hadoop/presto/lib/floatingdecimal-0.1.jar
-Dhive.config.resources=/home/hadoop/presto/etc/hadoop/conf/core-site.xml,/home/hadoop/presto/etc/hadoop/conf/hdfs-site.xml

聽JVM鐩稿叧鍙傛暟閰嶇疆锛岃繖浜涘弬鏁板湪缂栬瘧鏃朵娇鐢紝涓嶅鍏ュ埌shell锛屾瘡涓弬鏁拌缃负涓€琛岋紝琛屽熬鍒囧嬁鏈夌┖鏍?/p>

log.properties

com.facebook.presto=DEBUG

聽閰嶇疆鏃ュ織绛夌骇锛岀被浼间簬log4j銆傚洓涓瓑绾э細聽DEBUG,聽INFO,聽WARN聽,聽