How can we connect to 2 different hive spark.hadoop.hive.metastore.uris

maskepravin02
New Contributor II

We need to read a table from 2 different spark.hadoop.hive.metastore.uris and do some validations.

We are not able to connect to both spark.hadoop.hive.metastore.uris at the same time using sparkSession.

I will be using Spark version: 3.1.1 and the language is Scala.

Please comment if any suggestions.