mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
Floci in a container of its own, with the Docker socket, is how many users run it, and an EMR cluster's nodes are then its siblings on a network of their own: Floci's container joins that network so the cluster's metastore service reaches Floci's S3, and leaves it once the cluster has ended. That path had unit tests and one manual run, as no test ran Floci in a container for EMR. EmrFlociContainerNightlyIntegrationTest starts the Floci image the nightly workflow builds from the commit (docker/Dockerfile.jvm-package) with the socket and the docker runner mode, runs a cluster with Hive and Spark on it, and checks that a Hive step's tables over rows in S3 are read by a Spark step through the metastore, that a later Hive step reads the table the Spark step made, that Floci's container is on the cluster's network meanwhile, and that it is off it once the cluster has ended. A failing step's message carries its stderr and Floci's log. The nightly workflow builds the image and names it to the checks; the Spark and Hive images are prefetched for the class. The Hive and Spark jobs EmrHiveStepsDockerIntegrationTest wrote inline are HiveCatalogJobs, the step EMR tests added in two copies is EmrRequests.addStep, and the Docker client two RDS tests built by hand is TestDockerClients.local.