Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

trino can not load hbase-connector plugin in its docker

I am trying to use trino with its docker and try to add a plugin to it with the code below

ARG JAR_FILE

COPY ${JAR_FILE} /usr/lib/trino/plugin/hbase/prestosql-hbase-338-ops-0.1.6.jar

the plugin code is from https://github.com/analysys/presto-hbase-connector

I change all presto libs and packages to trino I also change the META-INF.service to the:

io.trino.spi.Plugin

which contains the address to the class which provide and implement the io.trino.spi.Plugin contains:

@Override
public Iterable<ConnectorFactory> getConnectorFactories() {
    return ImmutableList.of(new HBaseConnectorFactory());
}

https://github.com/smmalekabadi/presto-hbase-connector forked project is available here

still I get the following error when I run the docker image:

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)

Is there any way to solve this issue?

question from:https://stackoverflow.com/questions/65880111/trino-can-not-load-hbase-connector-plugin-in-its-docker

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...