mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
A cluster's primary, core and task nodes ran on the cluster's own Docker network alone, so a cluster-mode Spark driver or an executor on them could not reach an MSK cluster's brokers, an RDS instance or any other container Floci starts: reading a topic timed out waiting for a node assignment. The nodes did not use Floci's DNS either, so Iceberg's S3FileIO, which addresses buckets as virtual hosts, failed on UnknownHostException for <bucket>.<host>. Each node now joins the network its cluster's steps run on, the one those containers are on, before it starts, with Floci's DNS, as a cluster's nodes reach what is in their VPC; executors reach Floci's S3 as the steps do. A node an earlier Floci left on the cluster's network alone starts again on its data. Where the steps share a namespace or have no network of Floci's, nothing changes. A node's HDFS and YARN listen on its address on the cluster's own network alone, found in that network's subnet as the node starts, so another cluster's step on the shared network reaches neither, nor submits work to the nodes. Hive 3's metastore has no setting for the address it listens on, so the primary node of a cluster with Hive or HCatalog, which runs it, stays on the cluster's network alone, and so does every node where Docker does not say that network's subnet. ContainerBuilder.withJoinedNetwork names a further network a container joins between its creation and its start, and ContainerLifecycleManager connects it there, removing the container when it cannot.