Presto有两个软件包名称

时间:2019-03-05 17:06:53

标签: java presto

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

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

然后我注意到我的代码中用于Plugin接口的软件包名称是com.facebook.presto,它实际上是在实现com.facebook.presto.spi.Plugin接口。

我下载了错误的代码/发行版吗?如果是的话,哪一个是正确的?如果没有,为什么要两个包?

1 个答案:

答案 0 :(得分:5)

我认为您正在混合两种版本的代码。在Presto软件基金会成立之后(请参见公告:https://prweb.com/releases/prweb16070792.htm),Presto搬到了https://github.org/prestosql/prestohttps://prestosql.io下的新位置,并重新包装了所有代码。

如果旧版本下已有代码,请参见本指南,以了解如何进行迁移:https://github.com/prestosql/presto/wiki/Migration