You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing SerDeStorageSchemaReader class when creating Avro tables with schema file #630
When creating a Hive external table with the Avro schema URL defined the result is a table that cannot be queried or droped:
create table hive.test.avro_test (
LOAD_DATE varchar,
ID varchar,
EMAIL varchar,
NAME varchar
)
with (
format = 'AVRO',
external_location = 'hdfs://hdfs/test/table1',
avro_schema_url = 'hdfs://hdfs/schema/table1.avsc'
);
All operations on the table produce the following error:
[SQL Error [16777216]: Query failed (#20250804_105604_00015_upgzh): org.apache.hadoop.hive.metastore.SerDeStorageSchemaReader class not found](url)
Once the table is created it can no longer be managed from Trino.
This was originally opened as a Trino issue (stackabletech/trino-operator#783) but the issue lies with hive metastore missing the required Java classes from Hive and Hadoop.
The cause of this issue is that the standalone Hive metastore JARs do not contain the Hive and Hadoop dependencies required for Hive metastore to read the Avro schema files from HDFS.
Activity
Jimvin commentedon Aug 22, 2025
The cause of this issue is that the standalone Hive metastore JARs do not contain the Hive and Hadoop dependencies required for Hive metastore to read the Avro schema files from HDFS.