Alluxio / alluxio

Alluxio, data orchestration for analytics and machine learning in the cloud
https://www.alluxio.io
Apache License 2.0
6.81k stars 2.94k forks source link

trino-0.416 can't interacts with the Alluxio Catalog Service #17916

Open zxf216 opened 1 year ago

zxf216 commented 1 year ago

Page https://docs.alluxio.io/ee/user/2.7.0/en/compute/Trino.html?utm_source=trino&utm_medium=trinodocs Summary

  1. copy the trino jars from ${ALLUXIO_HOME}/client/presto/plugins/presto-hive-alluxio-319 to ${TRINO_HOME}/plugin/hive-alluxio

    cp -R ${ALLUXIO_HOME}/client/presto/plugins/presto-hive-alluxio-319/ ${TRINO_HOME}/plugin/hive-alluxio/

  2. create the catalog file in dir ${TRINO_HOME}/etc/catalog

connector.name=hive-alluxio hive.metastore=alluxio hive.metastore.alluxio.master.address=AlluxioHost:19998

  1. start trino. throw some error

java.lang.IllegalStateException: No service providers of type io.trino.spi.Plugin in the classpath: [file:/data1/trino/plugin/hive-alluxio/HdrHistogram-2.1.9.jar, file:/data1/trino/plugin/hive-alluxio/aircompressor-0.13.jar, file:/data1/trino/plugin/hive-alluxio/alluxio-shaded-client-2.8.0-SNAPSHOT.jar.........

ssyssy commented 1 year ago

Can you try to set the hive.metastore.alluxio.master.address=localhost:19998

And what's the java version?

zxf216 commented 1 year ago

Can you try to set the hive.metastore.alluxio.master.address=localhost:19998 This value has been configured , my trino version is trino-0.416

And what's the java version? $ java -version java version "17.0.7" 2023-04-18 LTS Java(TM) SE Runtime Environment (build 17.0.7+8-LTS-224) Java HotSpot(TM) 64-Bit Server VM (build 17.0.7+8-LTS-224, mixed mode, sharing)

ssyssy commented 1 year ago

Can you try to switch to java 11?

zxf216 commented 1 year ago

trino-0.416 mast running in the JDK 17 environment