The field METASTOREURIS exists in Hive 3.x and later, but not in Hive 2.3.x
use org.apache.hive:hive-common:jar:3.1.2
If upgrading Hive is not feasible due to other constraints, you must downgrade the spark-testing-base library to align with Hive 2.3.9