-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-8619][Streaming]Don't recover keytab and principal configuration within Streaming checkpoint #7008
Conversation
Test build #35749 has finished for PR 7008 at commit
|
You don't really need to reload the principal, but that is not a big deal. This LGTM. We probably should document that these parameters will not be reloaded from checkpoint, so the conf should still have the correct params (not sure if these params were documented in the first place). @tgravescs - this looks good to go. |
@harishreedharan You are right, the principal is all the same. |
@tgravescs, @tdas - This might be worth getting into a 1.4.1 if another RC is rolled. We should get this into 1.4.2 either way. |
changes look good to me. I'll let @tdas or other streaming maintainer look at commit this though as I'm not as familiar with this code. |
@@ -44,11 +44,19 @@ class Checkpoint(@transient ssc: StreamingContext, val checkpointTime: Time) | |||
val sparkConfPairs = ssc.conf.getAll | |||
|
|||
def createSparkConf(): SparkConf = { | |||
val reloadConfs = List( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you call this propertiesToReload
? It's confusing to have reloadConfs
here and newReloadConf
down there when they're not describing the same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, please add a short comment here to explain why this is necessary.
Test build #36065 has finished for PR 7008 at commit
|
Test build #36080 has finished for PR 7008 at commit
|
OK, LGTM I'll merge this into master and 1.4. |
Test build #36170 has finished for PR 7008 at commit
|
LGTM! Merging this to master and 1.4. Thanks! |
…tion within Streaming checkpoint [Client.scala](https://github.com/apache/spark/blob/master/yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala#L786) will change these configurations, so this would cause the problem that the Streaming recover logic can't find the local keytab file(since configuration was changed) ```scala sparkConf.set("spark.yarn.keytab", keytabFileName) sparkConf.set("spark.yarn.principal", args.principal) ``` Problem described at [Jira](https://issues.apache.org/jira/browse/SPARK-8619) Author: huangzhaowei <carlmartinmax@gmail.com> Closes #7008 from SaintBacchus/SPARK-8619 and squashes the following commits: d50dbdf [huangzhaowei] Delect one blank space 9b8e92c [huangzhaowei] Fix code style and add a short comment. 0d8f800 [huangzhaowei] Don't recover keytab and principal configuration within Streaming checkpoint. (cherry picked from commit d16a944) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
Client.scala will change these configurations, so this would cause the problem that the Streaming recover logic can't find the local keytab file(since configuration was changed)
Problem described at Jira