[SPARK-31235][YARN] Separates different categories of applications#28009
[SPARK-31235][YARN] Separates different categories of applications#28009wang-zhun wants to merge 8 commits intoapache:masterfrom
Conversation
| "--archives", "archive1.txt,archive2.txt", | ||
| "--num-executors", "6", | ||
| "--name", "trill", | ||
| "--conf", "spark.yarn.applicationType=SPARK-SQL", |
There was a problem hiding this comment.
should you also test the case when spark.yarn.applicationType is not set?
There was a problem hiding this comment.
I agree, what happens if empty string, any characters not allowed in it? Add tests and documentation to cover.
There was a problem hiding this comment.
you didn't add tests for other like one empty string?
Also I believe the limit on that string is 20 characters, we should test and document that. Can you also test a space in the type?
tgravescs
left a comment
There was a problem hiding this comment.
You also need to update the docs/running-on-yarn.md document for the config
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/config.scala
Show resolved
Hide resolved
| "--archives", "archive1.txt,archive2.txt", | ||
| "--num-executors", "6", | ||
| "--name", "trill", | ||
| "--conf", "spark.yarn.applicationType=SPARK-SQL", |
There was a problem hiding this comment.
I agree, what happens if empty string, any characters not allowed in it? Add tests and documentation to cover.
|
ok to test |
|
Test build #120371 has finished for PR 28009 at commit
|
|
test this please |
|
Test build #120377 has finished for PR 28009 at commit
|
|
@jiangxb1987 @tgravescs Thanks for your responses and suggestions |
|
Test build #120390 has finished for PR 28009 at commit
|
|
test this please |
|
Test build #120413 has finished for PR 28009 at commit
|
|
Hi @jiangxb1987 @tgravescs , could you help to review this? |
|
Please add test case as Thomas suggested, thanks! |
|
|
Test build #120548 has finished for PR 28009 at commit
|
|
My comment was to add both a unit test case and a description. Please add the test cases - one with an empty string, 1 with a space in the string, 1 exceeding the 20 character limit. |
|
Test build #120926 has finished for PR 28009 at commit
|
|
@tgravescs help look at this PR. |
|
test this please |
|
Test build #122000 has finished for PR 28009 at commit
|
|
thanks for pinging me, I'll try to look by the end of the week |
|
this is weird, I can't rerun the checks @dongjoon-hyun do you have permissions to tell this to rerun checks? |
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/config.scala
Show resolved
Hide resolved
resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/ClientSuite.scala
Outdated
Show resolved
Hide resolved
resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/ClientSuite.scala
Outdated
Show resolved
Hide resolved
|
Test build #122298 has finished for PR 28009 at commit
|
|
Test build #122299 has finished for PR 28009 at commit
|
tgravescs
left a comment
There was a problem hiding this comment.
changes look good, thanks @wang-zhun
|
merged to master |
| appContext.getPriority.getPriority should be (1) | ||
| } | ||
|
|
||
| test("specify a more specific type for the application") { |
|
yeah looks like its having issues with the yarn authorization provider for some reason @wang-zhun can we change the test to just create the RMAppManager once and then reuse? |
|
@tgravescs ok, #28456 |
|
Hi, All. I made a follow-up PR. Until now, it looks promising. |
What changes were proposed in this pull request?
This PR adds
spark.yarn.applicationTypeto identify the application typeWhy are the changes needed?
The current application defaults to the SPARK type.
In fact, different types of applications have different characteristics and are suitable for different scenarios.For example: SPAKR-SQL, SPARK-STREAMING.
I recommend distinguishing them by the parameter
spark.yarn.applicationTypeso that we can more easily manage and maintain different types of applications.How was this patch tested?
1.add UT
2.Tested by verifying Yarn-UI
ApplicationTypein the following cases:Need additional explanation:
limit cannot exceed 20 characters, can be empty or space
The reasons are as follows: