-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-10901] [YARN] spark.yarn.user.classpath.first doesn't work #8959
Conversation
Hi @tgravescs , This fixes the problem but I think it's actually just masking a subtle bug elsewhere. In
That is not actually doing the right thing in certain cases. When invoked from a The "cleanest" thing would be to have just a single version of I think changing that
(Not tested.) Does that make sense? Could you try that out? |
where are you suggesting putting this .map so its clear? in getUserPath on mainUri? I'm not seeing how your map call fixes anything so I"m guessing I'm missing the context. |
Sorry, my suggestion wasn't very clear and maybe not completely correct. Here's the possible values for
The return value for that method for these cases should be URIs pointing to:
So I think the following code should handle that:
Hope that makes better sense now. |
Test build #43157 has finished for PR 8959 at commit
|
At first glance that sounds good, but on further looking it doesn't work because of the way addFileToClasspath is called. It passes them as the uri and not filename. That is why originally I did this patch as just passing it in. I'll look to see if I can clean it up more. |
Hmm, I think I see what you mean. Maybe there should be separate handling for app jar vs. other jars when Man this code is overdue for a cleanup / sanity check... If it starts to get too nasty it might just be easier to add |
Test build #43242 has finished for PR 8959 at commit
|
@@ -1183,11 +1194,22 @@ object Client extends Logging { | |||
private def getUserClasspath( |
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.
This method is not needed anymore, is it? Only the one that takes a SparkConf
.
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.
(I see the other one calls this; both could be merged into a single method, though.)
LGTM pending tests and a minor cleanup. |
sorry typo, running scalastyle manually and will post updated patch shortly. |
Test build #43245 has finished for PR 8959 at commit
|
Test build #43246 has finished for PR 8959 at commit
|
Jenkins, test this please |
Test build #43251 has finished for PR 8959 at commit
|
Merging this, master and branch-1.5. |
This should go into 1.5.2 also. The issue is we were no longer adding the __app__.jar to the system classpath. Author: Thomas Graves <tgraves@staydecay.corp.gq1.yahoo.com> Author: Tom Graves <tgraves@yahoo-inc.com> Closes #8959 from tgravescs/SPARK-10901. (cherry picked from commit e978360) Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
This should go into 1.5.2 also.
The issue is we were no longer adding the app.jar to the system classpath.