docker

docker pull zhicwu/presto:latest

start

git clone https://github.com/zhicwu/docker-presto.git
cd docker-presto
chmod +x *.sh
./start-presto.sh
docker logs -f my-presto

查看

docker exec -it my-presto bash
./presto --server presto:8080 --catalog jmx --schema jmx
presto:jmx> show tables;

输出

presto:jmx> show tables;
                                                                      Table
--------------------------------------------------------------------------------
 com.facebook.presto.execution.scheduler:name=nodescheduler
 com.facebook.presto.execution:name=queryexecution
 com.facebook.presto.execution:name=querymanager
 com.facebook.presto.execution:name=remotetaskfactory
 com.facebook.presto.execution:name=taskexecutor
 com.facebook.presto.execution:name=taskmanager
 com.facebook.presto.execution:type=queryqueue,name=global,expansion=global
 com.facebook.presto.failuredetector:name=heartbeatfailuredetector
 com.facebook.presto.memory:name=clustermemorymanager
 com.facebook.presto.memory:type=clustermemorypool,name=general
 com.facebook.presto.memory:type=clustermemorypool,name=reserved
 com.facebook.presto.memory:type=clustermemorypool,name=system
 com.facebook.presto.memory:type=memorypool,name=general
 com.facebook.presto.memory:type=memorypool,name=reserved
 com.facebook.presto.memory:type=memorypool,name=system
 com.facebook.presto.operator.index:name=indexjoinlookupstats
 com.facebook.presto.security:name=accesscontrolmanager
 com.facebook.presto.server.remotetask:name=remotetaskstats
 com.facebook.presto.server:name=asynchttpexecutionmbean
 com.facebook.presto.server:name=exchangeexecutionmbean
 com.facebook.presto.server:name=taskresource
 com.facebook.presto.sql.gen:name=expressioncompiler

docs


codecraft
11.9k 声望2k 粉丝

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很自豪告诉世人,我曾经将代码注入生命去打造互联网的浪潮之巅,那是个很疯狂的时代,我在一波波的浪潮上留下...


引用和评论

0 条评论