From 08b2bae2676e083a2b7d6f3e590a612ebecf526a Mon Sep 17 00:00:00 2001 From: Priamo Germosen <6233424+pgermosen@users.noreply.github.com> Date: Sat, 14 Nov 2026 19:23:58 -0400 Subject: [PATCH] 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. --- .../aws/services/emrserverless/EmrServerlessSparkRunner.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/floci/aws/services/emrserverless/EmrServerlessSparkRunner.java b/src/main/java/io/floci/aws/services/emrserverless/EmrServerlessSparkRunner.java index 899e505dff..e601e60386 100644 --- a/src/main/java/io/floci/aws/services/emrserverless/EmrServerlessSparkRunner.java +++ b/src/main/java/io/floci/aws/services/emrserverless/EmrServerlessSparkRunner.java @@ -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 sparkSettings(Job job, String flociEndpoint, List executorEnvironment) { List hadoop = new ArrayList<>(hadoopSettings(job, flociEndpoint)); List hdfs = hdfsSettings(job.storage());