Data Store Management

An Amazon EMR Spark application must use the existing table definitions that Athena uses in AWS Glue Data Catalog. What should the engineer configure to avoid maintaining a separate metastore?

Show the answer

Correct answerD. AWS Glue Data Catalog as Spark's Hive metastore

AWhy not this: A Glue JDBC connection does not configure Spark's metadata repository.

BWhy not this: Crawling output discovers metadata but does not configure Spark to reference the shared catalog.

CWhy not this: Copied definitions require a second metastore and ongoing synchronization.

DWhy this is right: Spark can reference the existing Glue table definitions through its Hive metastore integration.

Configuring Spark to use AWS Glue Data Catalog as its Hive metastore lets Spark and Athena reference the same table definitions. Copying definitions to a local metastore creates a separate metadata repository that must be synchronized.