我正在尝试使用trino及其docker,并尝试用下面的代码向其添加一个插件
ARG JAR_FILE
COPY ${JAR_FILE} /usr/lib/trino/plugin/hbase/prestosql-hbase-338-ops-0.1.6.jar
插件代码来自https://github.com/analysys/presto-hbase-connector
我将所有presto lib和包更改为trino我还将meta-inf.service更改为:
io.trino.spi.Plugin
包含提供并实现io.trino.spi.plugin的类的地址,包含:
@Override
public Iterable<ConnectorFactory> getConnectorFactories() {
return ImmutableList.of(new HBaseConnectorFactory());
}
https://github.com/smmalekabadi/presto-hbase-connector 分叉项目在这里可用
运行docker映像时仍然出现以下错误:
2021-01-25T06:30:38.970Z ERROR main io.trino.server.Server No service providers of type io.trino.spi.Plugin
java.lang.IllegalStateException: No service providers of type io.trino.spi.Plugin
at com.google.common.base.Preconditions.checkState(Preconditions.java:589)
at io.trino.server.PluginManager.loadPlugin(PluginManager.java:166)
at io.trino.server.PluginManager.loadPlugin(PluginManager.java:157)
at io.trino.server.PluginManager.loadPlugins(PluginManager.java:138)
at io.trino.server.Server.doStart(Server.java:117)
at io.trino.server.Server.lambda$start$0(Server.java:73)
at io.trino.$gen.Trino_351____20210125_063014_1.run(Unknown Source)
at io.trino.server.Server.start(Server.java:73)
at io.trino.server.TrinoServer.main(TrinoServer.java:38)
有办法解决这个问题吗?
暂无答案!
目前还没有任何答案,快来回答吧!