完整demo: https://github.com/leoChaoGlut/presto-research/tree/master/presto-research-plugin
开发步骤
- pom.xml 中填加
- dependencies
- com.facebook.presto:presto-spi
- build plugin
- com.facebook.presto:presto-maven-plugin
- dependencies
- 任意 com.facebook.presto.spi.Plugin 的实现类
部署步骤
- mvn package
- 将 jar 包放至 presto-server 配置的 plugin.config-dir 的路径下