Files
floci/docs
Priamo Germosen 710b2488bf feat(emrserverless): run Hive job runs in the docker runner mode (#7407)
In the docker runner mode a Hive application's job run failed without
running ("Floci runs Spark job runs only"). It now runs: Floci starts
hive in a container of the release's EMR Serverless Hive image
(public.ecr.aws/emr-serverless/hive/<release>, or the new
hive-image-template), with Tez in local mode in Hive's JVM, S3A on
Floci's S3 and the Glue Data Catalog client, the image's metastore, on
Floci's Glue in the run's account.

- hive gets the core-site, tez-site and hive-site classifications as
  --hiveconf settings, the application's then the run's, a run's
  classification replacing the application's; then -i initQueryFile
  and -f query; then the run's parameters, whose --hiveconf settings
  take priority, as the user guide ranks them.
- The run's hive.exec.scratchdir and hive.metastore.warehouse.dir are
  used as it sets them, in S3. Tez in local mode copies a session's
  staging folder, which Hive puts under the scratch folder, to the same
  path in the container, a copy that silently does nothing where the
  image's hadoop user cannot create that path. The container starts as
  root, makes that path hadoop's, sets the Tez addresses EMR
  Serverless's runtime would set, then runs hive as hadoop in its home
  folder, with the groups Docker gives it. The scratch folder is the
  last hive.exec.scratchdir setting, in any form Hive's CLI reads:
  --hiveconf name=value, --hiveconf=name=value, with one dash or two,
  or the value as the next argument.
- A Hive application's custom image is its HiveDriver worker type's,
  else the application's; Tez's tasks run in the driver's container, so
  a TezTask image is not used.
- The driver's stdout.gz and stderr.gz go to the run's HIVE_DRIVER log
  folder, and its CloudWatch log streams are under HIVE_DRIVER, the
  entry of logTypes it reads; Hive's own log stays in the container.
- A run whose driver is not its application's type, hive on a Spark
  application or sparkSubmit on a Hive one, fails without running.

spark-defaults go through the same classification merge. The
Docker-gated EmrServerlessHiveDockerIntegrationTest runs the user
guide's Hive job and a failing query in the emr-7.5.0 Hive image, which
the CI prefetch pulls for its shard. EmrServerlessRequests'
createApplication takes the application's type, and S3TestClients'
deleteBucket empties and deletes a test's bucket.
2026-11-03 17:14:56 -06:00
..
2026-03-15 17:43:56 -05:00