Closed szisiu closed 3 weeks ago
I can't reproduce the issue with IcebergMinioHiveMetastoreQueryRunnerMain
. Can you investigate which config causes the failure?
I'm sorry, I didn't catch what you said. Any clue what config params could be investigated? I have a simple setup (no caching, etc.)
I could not find the IcebergMinioHiveMetastoreQueryRunnerMain
file in the trino repo.
Nonetheless I use docker containers on my test and production environments. Is it possible to run a test on the atatched docker compose project (against the latest trino public release)?
The class exists at https://github.com/trinodb/trino/blob/aea907955d3e6025f84dd91f7cc8ff544ca46c10/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/IcebergQueryRunner.java#L253
You can simply start a Trino cluster using the main method on IDE.
The following cache in metastore-site.xml is the cause as far as I tested locally:
<property>
<name>metastore.rawstore.impl</name>
<value>org.apache.hadoop.hive.metastore.cache.CachedStore</value>
</property>
@ebyhr thanks! I overlooked it!
It looks like if you remove the org.apache.hadoop.hive.metastore.cache.CachedStore
from metastore-site.xml
HMS config file then the drop schema with cascade works as expected.
On the other side there is a perfomance impact on queries.
AFAIK, org.apache.hadoop.hive.metastore.cache.CachedStore is a component of the Hive Metastore that can significantly improve performance by caching frequently accessed metadata in memory.
If possible maybe some drino docs could be updated. I dont know. Leaving that to the trino team to decide.
Refs:
Ran on Trino v454 (server and JDBC Driver) with Hive Metastore Standalone as metastore and MinIO as object storage (all on docker).
To reproduce:
trino-docker-test.zip
Error Type: EXTERNAL
Error Code: HIVE_METASTORE_ERROR (16777216)
Stacktrace:
Also in the docs:
Refs: https://trino.io/docs/current/sql/drop-schema.html