You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2022/06/30 02:38:44 UTC
[incubator-kyuubi] branch master updated: [KYUUBI #2972] Using stdout for the output of kyuubi-ctl
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/incubator-kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 338720578 [KYUUBI #2972] Using stdout for the output of kyuubi-ctl
338720578 is described below
commit 338720578670ad0650f97ae2631eca0b0f6851ca
Author: Fei Wang <fw...@ebay.com>
AuthorDate: Thu Jun 30 10:38:36 2022 +0800
[KYUUBI #2972] Using stdout for the output of kyuubi-ctl
### _Why are the changes needed?_
Using stdout as the output of kyuubi-ctl.
So that we can using the shell command
```
result=$(kyuubi-ctl action resource)
```
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [x] Add screenshots for manual tests if appropriate
<img width="1319" alt="Screen Shot 2022-06-30 at 07 46 42" src="https://user-images.githubusercontent.com/6757692/176564161-2ff622e7-80ba-4059-a6c4-b6408aee0ba7.png">
<img width="1319" alt="Screen Shot 2022-06-30 at 07 48 52" src="https://user-images.githubusercontent.com/6757692/176564338-316300e0-8d39-4d1f-a852-6f31eeedb443.png">
- [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request
Closes #2972 from turboFei/ctl_stdout.
Closes #2972
10cdf72c [Fei Wang] Use stdout
Authored-by: Fei Wang <fw...@ebay.com>
Signed-off-by: Cheng Pan <ch...@apache.org>
---
.../src/main/scala/org/apache/kyuubi/ctl/util/CommandLineUtils.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kyuubi-ctl/src/main/scala/org/apache/kyuubi/ctl/util/CommandLineUtils.scala b/kyuubi-ctl/src/main/scala/org/apache/kyuubi/ctl/util/CommandLineUtils.scala
index 7d2a29b1e..c54e5e976 100644
--- a/kyuubi-ctl/src/main/scala/org/apache/kyuubi/ctl/util/CommandLineUtils.scala
+++ b/kyuubi-ctl/src/main/scala/org/apache/kyuubi/ctl/util/CommandLineUtils.scala
@@ -32,7 +32,7 @@ private[kyuubi] trait CommandLineLoggingUtils {
// Exposed for testing
private[kyuubi] var exitFn: Int => Unit = (exitCode: Int) => System.exit(exitCode)
- private[kyuubi] var printStream: PrintStream = System.err
+ private[kyuubi] var printStream: PrintStream = System.out
// scalastyle:off println
private[kyuubi] def printMessage(msg: Any): Unit = printStream.println(msg)