trino抛出'java.lang.nosuchmethoderror:org.apache.phoenix.query.connectionqueryservices.getadmin()异常,

5jvtdoz2  于 2021-07-13  发布在  Hadoop
关注(0)|答案(1)|浏览(397)

我试图用trino获取一些数据,trino使用phoenix作为连接器,但是我得到了以下错误

java.lang.NoSuchMethodError: 'org.apache.hadoop.hbase.client.HBaseAdmin org.apache.phoenix.query.ConnectionQueryServices.getAdmin()'
   at io.trino.plugin.phoenix.PhoenixClient.getTableProperties(PhoenixClient.java:568)
   at io.trino.plugin.phoenix.PhoenixMetadata.getTableMetadata(PhoenixMetadata.java:98)
   at io.trino.plugin.phoenix.PhoenixMetadata.getTableMetadata(PhoenixMetadata.java:88)
   at io.trino.plugin.jdbc.JdbcMetadata.lambda$listTableColumns$4(JdbcMetadata.java:371)
   at java.base/java.util.Optional.ifPresent(Optional.java:183)
   at io.trino.plugin.jdbc.JdbcMetadata.listTableColumns(JdbcMetadata.java:371)
   at io.trino.plugin.base.classloader.ClassLoaderSafeConnectorMetadata.listTableColumns(ClassLoaderSafeConnectorMetadata.java:272)
   at io.trino.metadata.MetadataManager.listTableColumns(MetadataManager.java:607)
   at io.trino.metadata.MetadataListing.listTableColumns(MetadataListing.java:135)
   at io.trino.connector.informationschema.InformationSchemaPageSource.addColumnsRecords(InformationSchemaPageSource.java:251)
   at io.trino.connector.informationschema.InformationSchemaPageSource.buildPages(InformationSchemaPageSource.java:216)
   at io.trino.connector.informationschema.InformationSchemaPageSource.getNextPage(InformationSchemaPageSource.java:183)
   at io.trino.operator.ScanFilterAndProjectOperator$ConnectorPageSourceToPages.process(ScanFilterAndProjectOperator.java:376)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221)
   at io.trino.operator.WorkProcessorUtils$YieldingProcess.process(WorkProcessorUtils.java:181)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils$3.process(WorkProcessorUtils.java:306)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils$3.process(WorkProcessorUtils.java:306)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils$3.process(WorkProcessorUtils.java:306)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221)
   at io.trino.operator.WorkProcessorUtils.lambda$processStateMonitor$2(WorkProcessorUtils.java:200)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils.lambda$flatten$6(WorkProcessorUtils.java:277)
   at io.trino.operator.WorkProcessorUtils$3.process(WorkProcessorUtils.java:319)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils$3.process(WorkProcessorUtils.java:306)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221)
   at io.trino.operator.WorkProcessorUtils.lambda$processStateMonitor$2(WorkProcessorUtils.java:200)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorUtils.getNextState(WorkProcessorUtils.java:221)
   at io.trino.operator.WorkProcessorUtils.lambda$finishWhen$3(WorkProcessorUtils.java:215)
   at io.trino.operator.WorkProcessorUtils$ProcessWorkProcessor.process(WorkProcessorUtils.java:372)
   at io.trino.operator.WorkProcessorSourceOperatorAdapter.getOutput(WorkProcessorSourceOperatorAdapter.java:149)
   at io.trino.operator.Driver.processInternal(Driver.java:387)
   at io.trino.operator.Driver.lambda$processFor$9(Driver.java:291)
   at io.trino.operator.Driver.tryWithLock(Driver.java:683)
   at io.trino.operator.Driver.processFor(Driver.java:284)
   at io.trino.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:1076)
   at io.trino.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:163)
   at io.trino.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:484)
   at io.trino.$gen.Trino_352____20210213_131405_2.run(Unknown Source)
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   at java.base/java.lang.Thread.run(Thread.java:834)

我使用hbase 2.3.4、hadoop 3.2.2和phoenix 5.1.0
我还将phoenix客户机的正确版本复制到/path/to/trino/plugin,并将其服务器复制到/path/to/hbase/lib/
我不得不提到trino可以创建表或显示模式的内容,但我不能使用 select 或者 describe 查询。

0lvr5msh

0lvr5msh1#

trino phoenix连接器尚不支持phoenix 5.x。这有个问题https://github.com/trinodb/trino/issues/1271 你可以追踪。还有公关https://github.com/trinodb/trino/pull/6865 你可以自己试试。

相关问题