- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28.9k
[spark-11026][yarn]spark.yarn.user.classpath.first does work for 'spark-submit --jars hdfs://user/foo.jar' #9045
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
Conversation
| Test build #43466 has finished for   PR 9045 at commit  
 | 
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.
classpath is already printed if you turn debug on.
| I don't quite follow the scenario can you please describe in more detail? | 
| Test build #43472 has finished for   PR 9045 at commit  
 | 
| Not sure I understand either. What is this  | 
| @vanzin @tgravescs when spark-submit --master yarn-cluster  --jars /users/xxx.jar and spark.yarn.user.classpath.first=true, the jars of the command are not in system's classpath. | 
| Test build #43530 has finished for   PR 9045 at commit  
 | 
| sorry your description isn't clarifying it for me. Could you perhaps give an example? what do you mean by linkNames? If I use --jars /users/foo.jar and spark.yarn.user.classpath.first=true. foo.jar gets put into the system classpath (CLASSPATH=.....:foo.jar:...:spark.jar | 
| @tgravescs if use --jars hdfs://users/foo.jar, now i can not put foo.jar into the system classpath without this PR. | 
| ah I understand now, thanks. I'll take a look | 
| @lianhuiwang can you update the description to match your explanation? Mentioning "addJars" is confusing because it's not the source of the problem at all - rather, spark-submit's "--jars" option is. | 
| retest this please | 
| Test build #43578 has finished for   PR 9045 at commit  
 | 
| LGTM pending update of the description. | 
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.
minor nit, add space before {
| LGTM too, thanks for catching this, I should have tested these when I fixed the other part. | 
| @tgravescs @vanzin i have updated it. thanks. | 
| Test build #43642 has finished for   PR 9045 at commit  
 | 
| +1 thanks! | 
…park-submit --jars hdfs://user/foo.jar' when spark.yarn.user.classpath.first=true and using 'spark-submit --jars hdfs://user/foo.jar', it can not put foo.jar to system classpath. so we need to put yarn's linkNames of jars to the system classpath. vanzin tgravescs Author: Lianhui Wang <[email protected]> Closes #9045 from lianhuiwang/spark-11026. (cherry picked from commit 626aab7) Signed-off-by: Tom Graves <[email protected]>
when spark.yarn.user.classpath.first=true and using 'spark-submit --jars hdfs://user/foo.jar', it can not put foo.jar to system classpath. so we need to put yarn's linkNames of jars to the system classpath. @vanzin @tgravescs