Switch to Network Load Balancing; allow access to the Metastore from workers #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR switches over the Application Load Balancer in front of the coordinator to a Network Load Balancer. It also opens up port 9083 on the coordinator, through the NLB, to allow access to the Hive Metastore over the Thrift protocol; this is needed when workers query the Metastore -- for example, when inserting data into a partitioned table.
The NLB target group for the coordinator has some changes:
stickiness
block was added; this appears to be a bug in the underlying Terraform AWS provider, which generates a defaultstickiness
block when a health check is configured; the generatedstickiness
block is invalid for a TCP NLB.timeout
andmatcher
were removed from the health check because AWS does not support these properties when configuring a health check for a TCP NLB. AWS will use the default values oftimeout = 6
andmatcher = "200-399"
instead, which I believe are fine.Note that it takes a few minutes after deployment for the new port to be opened, while the health checks are initialized.