11. 常见问题和解决办法-变长参数
Query:
select product_id from table where city_id=1 and product_id in (1,2,3,4) and
concat_ws('-',year,month,day)='2017-12-01' and channel<>1 and
channel<>1010000001 limit 100;
修改为:
select product_id from table where city_id=1 and product_id in (1,2,3,4)
and array_join(ARRAY[year,month,day],‘-’,‘’)=‘2017-12-01’ and channel<>1
and channel<>1010000001 limit 100;
15. 常见问题和解决办法-高并发
问题:
Encountered too many errors talking to a worker node. The node may
have crashed or be under too much load. This is probably a transient
issue, so please retry your query in a few minutes.
原因:
task.max-worker-threads=cores*4;
解决办法:
config.properties配置合适的值
16. 常见问题和解决办法-监控
• Web UI
• basic query status check
• JMX HTTP API
• GET /v1/jmx/mbean[/{objectName}]
• com.facebook.presto.execution:name=TaskManager
• com.facebook.presto.execution:name=QueryManager
• com.facebook.presto.execution:name=NodeScheduler
25. Presto On Alluxio(三)
测试数据集 表A 表B
行数 15 millions 15 millions
大小 17 GB 17 GB
Alluxio v1.6.1,5台worker,每台worker10g 24c
Presto v0.187,5台worker,每台worker48g 24c
Query select count(a.pag_id) from a inner join b on a.pag_id =
b.pag_id group by a.pt limit 100;