Skip to content

Missing SerDeStorageSchemaReader class when creating Avro tables with schema file #630

Description

@Jimvin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions