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 2022/04/06 16:41:22 UTC

[GitHub] [spark] 1104056452 opened a new pull request, #36089: [SPARK-38807][CORE] Fix the startup error of spark shell on Windows s…

1104056452 opened a new pull request, #36089:
URL: https://github.com/apache/spark/pull/36089

   ### What changes were proposed in this pull request?
   The File.getCanonicalPath  method will return the drive letter in the windows system. The RpcEnvFileServer.validateDirectoryUri method uses the File.getCanonicalPath method to process the baseuri, which will cause the baseuri not to comply with the URI verification rules. For example, the / classes is processed into F: \ classes.
   This PR modified the RpcEnvFileServer.validateDirectoryUri  method to increase the conversion to Windows system, so that baseUri conforms to the URI check rule.
   ### Why are the changes needed?
   Fix the startup error of spark shell on Windows system
   ### Does this PR introduce any user-facing change?
   No
   ### How was this patch tested?
   Manually tested in local, and existing test cases should cover.
   


-- 
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] AmplabJenkins commented on pull request #36089: [SPARK-38807][CORE] Fix the startup error of spark shell on Windows s…

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

   Can one of the admins verify this patch?


-- 
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] HyukjinKwon commented on a diff in pull request #36089: [SPARK-38807][CORE] Fix the startup error of spark shell on Windows s…

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on code in PR #36089:
URL: https://github.com/apache/spark/pull/36089#discussion_r845688822


##########
core/src/main/scala/org/apache/spark/rpc/RpcEnv.scala:
##########
@@ -187,7 +188,10 @@ private[spark] trait RpcEnvFileServer {
 
   /** Validates and normalizes the base URI for directories. */
   protected def validateDirectoryUri(baseUri: String): String = {
-    val baseCanonicalUri = new File(baseUri).getCanonicalPath

Review Comment:
   Can we use `URI(baseUri).getPaths` instead? BTW from reading the JIRA, it seems like a regression. Would be great to point out which PR introduced this regression.
   
   Also, let's describe how you manually tested in the PR description.



-- 
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