AngersZhuuuu commented on a change in pull request #30973:
URL: https://github.com/apache/spark/pull/30973#discussion_r551119978
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -72,6 +72,10 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
protected def initProc: (OutputStream, Process, InputStream, CircularBuffer)
= {
val cmd = List("/bin/bash", "-c", script)
val builder = new ProcessBuilder(cmd.asJava)
+ .directory(new File(SparkFiles.getRootDirectory()))
+ val path = SparkFiles.getRootDirectory() + File.pathSeparator +
Review comment:
> Shall we place `PATH` first so it won't mistakenly have the higher
priority over the exectuables in `PATH`?
Done.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]