docs(emr-serverless): source Spark's use of the cluster's metastore as emr.md does (#8380)

The comment above sparkSettings backed Spark's Hive client using the
cluster's metastore with the Glue Data Catalog page's "persistent Hive
metastore or a Hive metastore shared by different clusters", which
emr.md no longer leans on. It now gives emr.md's sources: Spark's
default catalog "always connects to a Hive metastore" (the Release
Guide's "Use an Iceberg cluster with Spark"), and "Using HCatalog" has
Spark SQL read a table the HCat CLI made.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-14 19:23:58 -04:00
1 parent 16745c3804
commit 08b2bae267
1 file changed
+3 -2
@@ -1379,8 +1379,9 @@ public class EmrServerlessSparkRunner implements SparkJobRunner, ContainerTeardo
// Floci's settings, then the job's spark-defaults, in the order a later one wins. Spark's own Hadoop configuration
// takes HDFS's client back from the core-site.xml's view, for Spark and its Hive client, which writes a Hive table
// in HDFS only through it. On a cluster with Hive or HCatalog, Spark's Hive client uses the cluster's metastore
// too, as the Glue Data Catalog is the one to pick "when you require a persistent Hive metastore or a Hive
// metastore shared by different clusters"; a spark-hive-site naming its client factory still wins.
// too, as Spark's default catalog "always connects to a Hive metastore" (the Release Guide's "Use an Iceberg
// cluster with Spark") and its "Using HCatalog" has Spark SQL read a table the HCat CLI made; a spark-hive-site
// naming its client factory, the Glue Data Catalog's say, still wins.
private static List<SparkSetting> sparkSettings(Job job, String flociEndpoint, List<String> executorEnvironment) {
List<SparkSetting> hadoop = new ArrayList<>(hadoopSettings(job, flociEndpoint));
List<SparkSetting> hdfs = hdfsSettings(job.storage());