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
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。