AngersZhuuuu commented on a change in pull request #30973:
URL: https://github.com/apache/spark/pull/30973#discussion_r550957614
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/BaseScriptTransformationExec.scala
##########
@@ -69,9 +75,19 @@ trait BaseScriptTransformationExec extends UnaryExecNode {
}
}
- protected def initProc: (OutputStream, Process, InputStream, CircularBuffer)
= {
- val cmd = List("/bin/bash", "-c", script)
Review comment:
> You're creating another process to invoke bash. You can set the
environment in the process builder.
== Just put value to the environment can work.
So for handle my problem, put Spark root dir to Path can make it work. Do
you support to add a command wrapper?
It will be more flexible but may change current compatibility with previous
usage.
----------------------------------------------------------------
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]