[
https://issues.apache.org/jira/browse/HIVE-11094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602450#comment-14602450
]
Thejas M Nair commented on HIVE-11094:
--------------------------------------
The 'correct' behavior (based on hive-cli as well as most other tools) is to
send only output to stdout and all info/warning etc goes to stderr.
The info messages are considered similar to log messages, just lower level than
warn.
> Beeline redirecting all output to ErrorStream
> ---------------------------------------------
>
> Key: HIVE-11094
> URL: https://issues.apache.org/jira/browse/HIVE-11094
> Project: Hive
> Issue Type: Bug
> Components: CLI
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Attachments: HIVE-11094.patch
>
>
> Beeline is sending all output to ErrorStream, instead of using OutputStream
> for info or debug information.
> The problem can be reproduced by running:
> {noformat}
> ./bin/beeline -u jdbc:hive2:// -e "show databases" > exec.out
> {noformat}
> I will still print the output through the terminal. The reason seems to be
> that the normal output is also sent through the ErrorStream.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)