两个包名下的 Presto

Presto under two package names

我刚开始为 JSON API 开发 Presto 连接器。正如许多地方所建议的那样,我从 example-http 连接器开始,做了一些更改并部署了 documentation 中提到的连接器。然后我在启动服务器时出现以下错误。

No service providers of type io.prestosql.spi.Plugin

然后我注意到我的代码中插件接口的包名称是 com.facebook.presto 并且它实际上实现了 com.facebook.presto.spi.Plugin 接口。

我是不是下载错了code/distribution?如果是的话,哪一个是正确的?如果不是,为什么要两个包裹?

我认为您混合使用了两个版本的代码。 Presto Software Foundation成立后(见公告:https://prweb.com/releases/prweb16070792.htm), Presto moved to its new home under https://github.org/trinodb/trino and https://trino.io,所有代码重新打包

如果您有旧版本下的现有代码,请参阅本指南了解如何迁移它:https://github.com/trinodb/trino/wiki/Migration