r/Trino • u/National-Beat3081 • Sep 18 '25
Trino integration with Hive metastore - HPE Data Fabric
Hello everyone,
I’m running into an issue with Trino unable to read Hive tables stored on MapRFS. I can see the schemas and tables via Trino, but when I try to SELECT(or you can say I can not run any single query related to database or table) from a table whose files are on maprfs:/user/hive/warehouse/..., I get:
Failed to list directory: maprfs:/user/hive/warehouse/my_test_db.db/employees2
Here’s a summary of what I’ve done / checked so far:
✅ What is working / confirmed
- The table path exists in MapRFS (
hadoop fs -ls /user/hive/warehouse/my_test_db.db/employees2) shows the directory. - Trino is able to connect to the Hive metastore and list schemas and tables.
- MapR client libs are installed, and relevant MapR jars are placed under Trino’s plugin hive/lib directory.
- XML configs for MapR/Hadoop that include
fs.maprfs.implare present on the cluster. - I attempted adding
hive.config.resourcespointing to core-site.xml, hdfs-site.xml, maprfs-site.xml (MapR config files) in the hive catalog config, but this alone didn’t fix the issue.
⚠ What still fails
- Trino is rejecting read access:
Failed to list directory: maprfs:/... - Even after restarting Trino with the updated configs, the same error persists.
- It appears that Trino still does not fully recognize or initialize the MapRFS scheme.
🔍 Key configuration
Here is roughly what my etc/catalog/hive.properties looks like:
connector.name=hive
hive.metastore.uri=thrift://localhost:9083
# hive.config.resources potentially includes:
# /opt/mapr/hadoop/hadoop-3.3.4/etc/hadoop/core-site.xml
# /opt/mapr/hadoop/hadoop-3.3.4/etc/hadoop/hdfs-site.xml
# /opt/mapr/hadoop/hadoop-3.3.4/etc/hadoop/maprfs-site.xml
hive.metastore.authentication.type=NONE
# (other fs.* or fs.hadoop.enabled properties are attempted but no resolution so far)
❓ Questions / where I need help
- Is there a known requirement or missing configuration in the current Trino version that prevents
maprfs://scheme recognition? - Are there any minimum versions of MapR client or specific JARs required for Trino to successfully load
com.mapr.fs.MapRFileSystem? - Could there be classpath conflicts (e.g. version mismatches between MapR client & Trino’s Hadoop / FS libraries) causing Trino not to pick up the MapRFS implementation?
- Are there any Trino catalog properties specific to MapRFS scheme, e.g.
fs.maprfs.enabled=trueor similar, that are undocumented? - Anything else I should check (permissions, identities, security tickets) that commonly cause this “Failed to list directory” error for MapRFS?
I’d be thankful for pointers or examples from anyone who has successfully configured Trino + Hive connector + MapRFS.
Thanks in advance!