Skip to content

Conversation

@Ngone51
Copy link
Member

@Ngone51 Ngone51 commented Feb 25, 2020

What changes were proposed in this pull request?

Rename config spark.resources.discovery.plugin to spark.resources.discoveryPlugin.

Also, as a side minor change: labeled ResourceDiscoveryScriptPlugin as DeveloperApi since it's not for end user.

Why are the changes needed?

Discovery plugin doesn't need to reserve the "discovery" namespace here and it's more consistent with the interface name ResourceDiscoveryPlugin if we use discoveryPlugin instead.

Does this PR introduce any user-facing change?

No, it's newly added in Spark3.0.

How was this patch tested?

Pass Jenkins.

@Ngone51
Copy link
Member Author

Ngone51 commented Feb 25, 2020

cc @tgravescs @mengxr

@SparkQA
Copy link

SparkQA commented Feb 25, 2020

Test build #118888 has finished for PR 27689 at commit 57770dd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor

@tgravescs tgravescs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.
Again, I assume you ran a manual test to make sure config works still?

@tgravescs
Copy link
Contributor

oh never mind on the testing, unit tests cover it

@mengxr
Copy link
Contributor

mengxr commented Feb 25, 2020

LGTM2

@HyukjinKwon
Copy link
Member

Merged to master and branch-3.0.

HyukjinKwon pushed a commit that referenced this pull request Feb 26, 2020
### What changes were proposed in this pull request?

Rename config `spark.resources.discovery.plugin` to `spark.resources.discoveryPlugin`.

Also, as a side minor change: labeled `ResourceDiscoveryScriptPlugin` as `DeveloperApi` since it's not for end user.

### Why are the changes needed?

Discovery plugin doesn't need to reserve the "discovery" namespace here and it's more consistent with the interface name `ResourceDiscoveryPlugin` if we use `discoveryPlugin` instead.

### Does this PR introduce any user-facing change?

No, it's newly added in Spark3.0.

### How was this patch tested?

Pass Jenkins.

Closes #27689 from Ngone51/spark_30689_followup.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit e9fd522)
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
@Ngone51
Copy link
Member Author

Ngone51 commented Feb 26, 2020

thanks all!

sjincho pushed a commit to sjincho/spark that referenced this pull request Apr 15, 2020
### What changes were proposed in this pull request?

Rename config `spark.resources.discovery.plugin` to `spark.resources.discoveryPlugin`.

Also, as a side minor change: labeled `ResourceDiscoveryScriptPlugin` as `DeveloperApi` since it's not for end user.

### Why are the changes needed?

Discovery plugin doesn't need to reserve the "discovery" namespace here and it's more consistent with the interface name `ResourceDiscoveryPlugin` if we use `discoveryPlugin` instead.

### Does this PR introduce any user-facing change?

No, it's newly added in Spark3.0.

### How was this patch tested?

Pass Jenkins.

Closes apache#27689 from Ngone51/spark_30689_followup.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
* throws if the resource isn't discovered.
*/
@DeveloperApi
class ResourceDiscoveryScriptPlugin extends ResourceDiscoveryPlugin with Logging {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just happened to double check these modules. Shall we add @since for APIs ResourceDiscoveryScriptPlugin, ResourceInformation, etc. ?

I remember it was targeted to be APIs for Spark 3.0, and we kind of postponed to Spark 3.1 (?) cc @tgravescs - am I correct? Let's add @since for exposed APIs for Spark 3.0 at least.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is 3.0 and is a separate feature from the stage level scheduling that got postponed to 3.1. We can add the @SInCE and its 3.0

HyukjinKwon pushed a commit that referenced this pull request May 20, 2020
…overyScriptPlugin/ResourceInformation

### What changes were proposed in this pull request?

Added `since 3.0.0` for `ResourceDiscoveryScriptPlugin` and `ResourceInformation`.

### Why are the changes needed?

It's required for exposed APIs(#27689 (comment)).

### Does this PR introduce _any_ user-facing change?

Yes, they can easily know when does Spark introduces the API.

### How was this patch tested?

Pass Jenkins.

Closes #28591 from Ngone51/followup-30689.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
HyukjinKwon pushed a commit that referenced this pull request May 20, 2020
…overyScriptPlugin/ResourceInformation

### What changes were proposed in this pull request?

Added `since 3.0.0` for `ResourceDiscoveryScriptPlugin` and `ResourceInformation`.

### Why are the changes needed?

It's required for exposed APIs(#27689 (comment)).

### Does this PR introduce _any_ user-facing change?

Yes, they can easily know when does Spark introduces the API.

### How was this patch tested?

Pass Jenkins.

Closes #28591 from Ngone51/followup-30689.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit 26bc690)
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants