You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/04/15 03:31:35 UTC

[GitHub] [spark] ulysses-you opened a new pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

ulysses-you opened a new pull request #32184:
URL: https://github.com/apache/spark/pull/32184


   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
     2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
     4. Be sure to keep the PR description updated to reflect all changes.
     5. Please write your PR title to summarize what this PR proposes.
     6. If possible, provide a concise example to reproduce the issue for a faster review.
     7. If you want to add a new configuration, please read the guideline first for naming configurations in
        'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
   -->
   
   ### What changes were proposed in this pull request?
   <!--
   Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. 
   If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
     1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
     2. If you fix some SQL features, you can provide some references of other DBMSes.
     3. If there is design documentation, please add the link.
     4. If there is a discussion in the mailing list, please add the link.
   -->
   Use hadoop FileSystem instead of FileInputStream.
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   Make `spark.scheduler.allocation.file` suport remote file. When using Spark as a server (e.g. SparkThriftServer), it's hard for user to specify a local path as the scheduler pool.
   
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   Note that it means *any* user-facing change including all aspects such as the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
   If no, write 'No'.
   -->
   Yes, a minor feature.
   
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   Pass `core/src/test/scala/org/apache/spark/scheduler/PoolSuite.scala` and manul test
   After add config `spark.scheduler.allocation.file=hdfs:///tmp/fairscheduler.xml`. We intrudoce the configed pool.
   ![pool1](https://user-images.githubusercontent.com/12025282/114810037-df065700-9ddd-11eb-8d7a-54b59a07ee7b.jpg)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820900295


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42035/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820294297


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137403/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820087668


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41971/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun closed pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun closed pull request #32184:
URL: https://github.com/apache/spark/pull/32184


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820197709


   **[Test build #137403 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137403/testReport)** for PR 32184 at commit [`4eec581`](https://github.com/apache/spark/commit/4eec581705b055e7f33e065c62c60f569df4b6d8).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r692191737



##########
File path: docs/job-scheduling.md
##########
@@ -252,10 +252,11 @@ properties:
 
 The pool properties can be set by creating an XML file, similar to `conf/fairscheduler.xml.template`,
 and either putting a file named `fairscheduler.xml` on the classpath, or setting `spark.scheduler.allocation.file` property in your
-[SparkConf](configuration.html#spark-properties).
+[SparkConf](configuration.html#spark-properties). The file path can either be a local file path or HDFS file path.

Review comment:
       Actually, this line isn't completely true. It can be a local file path only when `fs.default.scheme` is `file:///` which usually isn't in production.
   
   So, if users from old Spark versions use a path like `/path/to/file`, the files will be written into HDFS after the upgrade.
   
   Can we at least update the migration guide? We should also mention that it respects Hadoop properties now.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820237565


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41979/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820089386


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/41971/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r614534549



##########
File path: core/src/test/scala/org/apache/spark/scheduler/PoolSuite.scala
##########
@@ -332,12 +337,36 @@ class PoolSuite extends SparkFunSuite with LocalSparkContext {
     sc = new SparkContext(LOCAL, APP_NAME, conf)
 
     val rootPool = new Pool("", SchedulingMode.FAIR, 0, 0)
-    val schedulableBuilder = new FairSchedulableBuilder(rootPool, sc.conf)
+    val schedulableBuilder = new FairSchedulableBuilder(rootPool, sc)
     intercept[FileNotFoundException] {
       schedulableBuilder.buildPools()
     }
   }
 
+  test("SPARK-35083: Support remote scheduler pool file") {
+    val hadoopVersion = VersionInfo.getVersion.split("\\.")
+    // HttpFileSystem supported since hadoop 2.9
+    assume(hadoopVersion.head.toInt >= 3 ||
+      (hadoopVersion.head.toInt == 2 && hadoopVersion(1).toInt >= 9))

Review comment:
       This check is to avoid `java.io.IOException: No FileSystem for scheme: http` if we use hadoop 2.7 which Spark still supports.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r692307824



##########
File path: docs/job-scheduling.md
##########
@@ -252,10 +252,11 @@ properties:
 
 The pool properties can be set by creating an XML file, similar to `conf/fairscheduler.xml.template`,
 and either putting a file named `fairscheduler.xml` on the classpath, or setting `spark.scheduler.allocation.file` property in your
-[SparkConf](configuration.html#spark-properties).
+[SparkConf](configuration.html#spark-properties). The file path can either be a local file path or HDFS file path.

Review comment:
       +1 for @HyukjinKwon 's advice.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r614115181



##########
File path: core/src/main/scala/org/apache/spark/scheduler/SchedulableBuilder.scala
##########
@@ -74,7 +76,8 @@ private[spark] class FairSchedulableBuilder(val rootPool: Pool, conf: SparkConf)
     var fileData: Option[(InputStream, String)] = None
     try {
       fileData = schedulerAllocFile.map { f =>
-        val fis = new FileInputStream(f)
+        val filePath = new Path(f)
+        val fis = filePath.getFileSystem(sc.hadoopConfiguration).open(filePath)

Review comment:
       This code can do many things. Please see my above comment. (https://github.com/apache/spark/pull/32184#issuecomment-820459844)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820031692


   Do you have time to take a look if you don't mind ? @dongjoon-hyun @srowen @Ngone51 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820089386


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/41971/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820840238


   @dongjoon-hyun Thank you very much for the explanation. I have never used the http filesystem before so that not realized it was supported by hadoop FileSystem (seems form hadoop2.9 [HADOOP-1438](https://issues.apache.org/jira/browse/HADOOP-14383) which is an advance version for us).
   
   I will check it and add some test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820951543


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137460/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] Ngone51 commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
Ngone51 commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r613778383



##########
File path: docs/job-scheduling.md
##########
@@ -256,6 +256,7 @@ and either putting a file named `fairscheduler.xml` on the classpath, or setting
 
 {% highlight scala %}
 conf.set("spark.scheduler.allocation.file", "/path/to/file")
+conf.set("spark.scheduler.allocation.file", "hdfs:///path/to/file")

Review comment:
       I think HDFS also supports reading the local file. Could you mention it in the above document? e.g., "The file path can either be a local file path or HDFS file path."




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820884965


   **[Test build #137460 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137460/testReport)** for PR 32184 at commit [`bfd2a55`](https://github.com/apache/spark/commit/bfd2a55bb1f3988428f7671f406757aff72f7870).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820089269


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41971/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820294297


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137403/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820263191


   Kubernetes integration test status failure
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41979/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820151183


   **[Test build #137394 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137394/testReport)** for PR 32184 at commit [`8bd973d`](https://github.com/apache/spark/commit/8bd973dc8df11e24c2ae2e8008baf675c96707e6).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820284720


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/41979/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820884965


   **[Test build #137460 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137460/testReport)** for PR 32184 at commit [`bfd2a55`](https://github.com/apache/spark/commit/bfd2a55bb1f3988428f7671f406757aff72f7870).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820459844


   > @dongjoon-hyun looked into that PR, it provided a Http server. This PR aims to support the remote file using HDFS api, seems we can not add a useful test.
   > 
   > Update the pr title to make it clear.
   
   
   Hi, @ulysses-you . It seems that you are underestimating your PR's contribution. :)
   Hadoop API is an abstraction layer to support various file systems like the following.
   
   ```scala
   scala> new org.apache.hadoop.fs.Path("file:///tmp/README.md").getFileSystem(sc.hadoopConfiguration)
   res0: org.apache.hadoop.fs.FileSystem = org.apache.hadoop.hive.ql.io.ProxyLocalFileSystem@1def2d16
   
   scala> new org.apache.hadoop.fs.Path("https://spark.apache.org/index.html").getFileSystem(sc.hadoopConfiguration)
   res1: org.apache.hadoop.fs.FileSystem = org.apache.hadoop.fs.http.HttpsFileSystem@4058b398
   
   scala> new org.apache.hadoop.fs.Path("s3a://dongjoon/README.md").getFileSystem(sc.hadoopConfiguration)
   res2: org.apache.hadoop.fs.FileSystem = S3AFileSystem{uri=s3a://dongjoon,...
   ```
   
   Have you try to put your pool file on other file systems, HTTP Webserver or S3 (or S3-compatible MinIO)? Do you mean it doesn't work for you, @ulysses-you ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] github-actions[bot] commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820878726


   **[Test build #754235880](https://github.com/ulysses-you/spark/actions/runs/754235880)** for PR 32184 at commit [`bfd2a55`](https://github.com/ulysses-you/spark/commit/bfd2a55bb1f3988428f7671f406757aff72f7870).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r692598890



##########
File path: docs/job-scheduling.md
##########
@@ -252,10 +252,11 @@ properties:
 
 The pool properties can be set by creating an XML file, similar to `conf/fairscheduler.xml.template`,
 and either putting a file named `fairscheduler.xml` on the classpath, or setting `spark.scheduler.allocation.file` property in your
-[SparkConf](configuration.html#spark-properties).
+[SparkConf](configuration.html#spark-properties). The file path can either be a local file path or HDFS file path.

Review comment:
       @HyukjinKwon sorry, not sure I get your point.
   
   > So, if users from old Spark versions use a path like /path/to/file, the files will be written into HDFS after the upgrade.
   
   Why we need to write files into HDFS ? This PR is to support read remote file as the schedule pool. I think there is no behavior change but just a new feature.
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820035097


   **[Test build #137394 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137394/testReport)** for PR 32184 at commit [`8bd973d`](https://github.com/apache/spark/commit/8bd973dc8df11e24c2ae2e8008baf675c96707e6).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you edited a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
ulysses-you edited a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820173682


   @dongjoon-hyun looked into that PR, it provided a Http server. This PR aims to support the remote file using HDFS api, seems we can not add a useful test.
   
   Update the pr title to make it clear.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820291423


   **[Test build #137403 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137403/testReport)** for PR 32184 at commit [`4eec581`](https://github.com/apache/spark/commit/4eec581705b055e7f33e065c62c60f569df4b6d8).
    * This patch **fails Spark unit tests**.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r692624659



##########
File path: docs/job-scheduling.md
##########
@@ -252,10 +252,11 @@ properties:
 
 The pool properties can be set by creating an XML file, similar to `conf/fairscheduler.xml.template`,
 and either putting a file named `fairscheduler.xml` on the classpath, or setting `spark.scheduler.allocation.file` property in your
-[SparkConf](configuration.html#spark-properties).
+[SparkConf](configuration.html#spark-properties). The file path can either be a local file path or HDFS file path.

Review comment:
       thanks man!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820898919


   Kubernetes integration test starting
   URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42035/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] github-actions[bot] commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820173058


   **[Test build #751076980](https://github.com/ulysses-you/spark/actions/runs/751076980)** for PR 32184 at commit [`4eec581`](https://github.com/ulysses-you/spark/commit/4eec581705b055e7f33e065c62c60f569df4b6d8).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820035097


   **[Test build #137394 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137394/testReport)** for PR 32184 at commit [`8bd973d`](https://github.com/apache/spark/commit/8bd973dc8df11e24c2ae2e8008baf675c96707e6).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820158709


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137394/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820901731


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42035/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820951543


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137460/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] yaooqinn commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
yaooqinn commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820092327


   looks nice, and good to have it tested per @dongjoon-hyun's suggestion


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820901731


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42035/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] github-actions[bot] commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820031242


   **[Test build #750579552](https://github.com/ulysses-you/spark/actions/runs/750579552)** for PR 32184 at commit [`8bd973d`](https://github.com/ulysses-you/spark/commit/8bd973dc8df11e24c2ae2e8008baf675c96707e6).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820996503


   thanks for merging !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you commented on a change in pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on a change in pull request #32184:
URL: https://github.com/apache/spark/pull/32184#discussion_r692600086



##########
File path: docs/job-scheduling.md
##########
@@ -252,10 +252,11 @@ properties:
 
 The pool properties can be set by creating an XML file, similar to `conf/fairscheduler.xml.template`,
 and either putting a file named `fairscheduler.xml` on the classpath, or setting `spark.scheduler.allocation.file` property in your
-[SparkConf](configuration.html#spark-properties).
+[SparkConf](configuration.html#spark-properties). The file path can either be a local file path or HDFS file path.

Review comment:
       I see , if user specify a path `/path/to/file` with no scheme then after this PR, Spark will load it from HDFS instead of local. That worth a migration guide , thank you point out this ! @HyukjinKwon @dongjoon-hyun 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] ulysses-you commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
ulysses-you commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820173682


   @dongjoon-hyun looked into that PR, it provided a Http server. This PR aims to support the remote file using HDFS api, seems we can not add a useful test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820197709


   **[Test build #137403 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137403/testReport)** for PR 32184 at commit [`4eec581`](https://github.com/apache/spark/commit/4eec581705b055e7f33e065c62c60f569df4b6d8).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820158709


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137394/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] SparkQA commented on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool files

Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820935210


   **[Test build #137460 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/137460/testReport)** for PR 32184 at commit [`bfd2a55`](https://github.com/apache/spark/commit/bfd2a55bb1f3988428f7671f406757aff72f7870).
    * This patch passes all tests.
    * This patch merges cleanly.
    * This patch adds no public classes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] AmplabJenkins removed a comment on pull request #32184: [SPARK-35083][CORE] Support remote scheduler pool file using hadoop api

Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #32184:
URL: https://github.com/apache/spark/pull/32184#issuecomment-820284720


   
   Refer to this link for build results (access rights to CI server needed): 
   https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/41979/
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org