-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-36599][CORE] Fix the http class server to work again #33849
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,13 +55,8 @@ class ExecutorClassLoader( | |
| parent: ClassLoader, | ||
| userClassPathFirst: Boolean) extends ClassLoader(null) with Logging { | ||
| val uri = new URI(classUri) | ||
| val directory = uri.getPath | ||
|
|
||
| val parentLoader = new ParentClassLoader(parent) | ||
|
|
||
| // Allows HTTP connect and read timeouts to be controlled for testing / debugging purposes | ||
| private[repl] var httpUrlConnectionTimeoutMillis: Int = -1 | ||
|
|
||
| private val fetchFn: (String) => InputStream = uri.getScheme() match { | ||
| case "spark" => getClassFileInputStreamFromSparkRPC | ||
| case _ => | ||
|
|
@@ -160,7 +155,7 @@ class ExecutorClassLoader( | |
|
|
||
| private def getClassFileInputStreamFromFileSystem(fileSystem: FileSystem)( | ||
| pathInDirectory: String): InputStream = { | ||
| val path = new Path(directory, pathInDirectory) | ||
| val path = new Path(new Path(uri), pathInDirectory) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you explain a little more what inputs fail without this change?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hadoop Http filesystem require the paths to be fully qualified URLs. apache/hadoop#3338 |
||
| try { | ||
| fileSystem.open(path) | ||
| } catch { | ||
|
|
||
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.
I agree this is unused