This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new c1b55d845 [KYUUBI #6422] Merge standard error to output
c1b55d845 is described below
commit c1b55d8456655e120b8fe8db32e39af469d4616b
Author: wforget <[email protected]>
AuthorDate: Mon May 27 16:40:16 2024 +0800
[KYUUBI #6422] Merge standard error to output
# :mag: Description
## Issue References ๐
This pull request fixes #
## Describe Your Solution ๐ง
Merge standard error to output.
## Types of changes :bookmark:
- [ ] Bugfix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
## Test Plan ๐งช
#### Behavior Without This Pull Request :coffin:
#### Behavior With This Pull Request :tada:
#### Related Unit Tests
---
# Checklist ๐
- [X] This patch was not authored or co-authored using [Generative
Tooling](https://www.apache.org/legal/generative-tooling.html)
**Be nice. Be informative.**
Closes #6422 from wForget/redirect.
Closes #6422
277d688d5 [wforget] Merge standard error to output
Authored-by: wforget <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
---
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
index c364489fd..566bc18ad 100644
--- a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
+++ b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
@@ -149,7 +149,7 @@ trait ProcBuilder {
val envs = pb.environment()
envs.putAll(env.asJava)
pb.directory(workingDir.toFile)
- pb.redirectError(engineLog)
+ pb.redirectErrorStream(true)
pb.redirectOutput(engineLog)
extraEngineLog.foreach(_.addExtraLog(engineLog.toPath))
pb