Please check if the file hive-metastore-2.x.x.jar exists in your Spark jars path. I found hive-metastore-2.3.9.jar in the spark-3.5.0-bin-hadoop3/jars directory.