-
- Downloads
[SPARK-21494][NETWORK] Use correct app id when authenticating to external service.
There was some code based on the old SASL handler in the new auth client that was incorrectly using the SASL user as the user to authenticate against the external shuffle service. This caused the external service to not be able to find the correct secret to authenticate the connection, failing the connection. In the course of debugging, I found that some log messages from the YARN shuffle service were a little noisy, so I silenced some of them, and also added a couple of new ones that helped find this issue. On top of that, I found that a check in the code that records app secrets was wrong, causing more log spam and also using an O(n) operation instead of an O(1) call. Also added a new integration suite for the YARN shuffle service with auth on, and verified it failed before, and passes now. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #18706 from vanzin/SPARK-21494.
Showing
- common/network-common/src/main/java/org/apache/spark/network/crypto/AuthClientBootstrap.java 2 additions, 4 deletions.../org/apache/spark/network/crypto/AuthClientBootstrap.java
- common/network-common/src/main/java/org/apache/spark/network/crypto/AuthRpcHandler.java 6 additions, 1 deletion.../java/org/apache/spark/network/crypto/AuthRpcHandler.java
- common/network-shuffle/src/main/java/org/apache/spark/network/sasl/ShuffleSecretManager.java 2 additions, 2 deletions...a/org/apache/spark/network/sasl/ShuffleSecretManager.java
- common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java 0 additions, 2 deletions...ava/org/apache/spark/network/yarn/YarnShuffleService.java
- resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnShuffleIntegrationSuite.scala 37 additions, 5 deletions...pache/spark/deploy/yarn/YarnShuffleIntegrationSuite.scala
Please register or sign in to comment