You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "S. Alex Smith (JIRA)" <ji...@apache.org> on 2009/02/05 23:25:59 UTC

[jira] Created: (HIVE-275) "hive -e ''" writes non-output to stdout

"hive -e '<query>'" writes non-output to stdout
-----------------------------------------------

                 Key: HIVE-275
                 URL: https://issues.apache.org/jira/browse/HIVE-275
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Clients
            Reporter: S. Alex Smith


A command like: hive -e 'select * from my_table' produces output like:
Hive history file=/tmp/asmith/hive_job_log_asmith_200902051423_1455103524.txt
OK
1       [4, 4]
1       [0, 1]
0       [0, 0]
0       [1, 0]
Time taken: 2.413 seconds

where all seven lines go to stdout, instead of lines 1, 2, and 7 going to stderr.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-275) "hive -e ''" writes non-output to stdout

Posted by "Ashish Thusoo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670972#action_12670972 ] 

Ashish Thusoo commented on HIVE-275:
------------------------------------

yeah. I had mentioned the same thing to Alex off line and he is going to try it out.

> "hive -e '<query>'" writes non-output to stdout
> -----------------------------------------------
>
>                 Key: HIVE-275
>                 URL: https://issues.apache.org/jira/browse/HIVE-275
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: S. Alex Smith
>
> A command like: hive -e 'select * from my_table' produces output like:
> Hive history file=/tmp/asmith/hive_job_log_asmith_200902051423_1455103524.txt
> OK
> 1       [4, 4]
> 1       [0, 1]
> 0       [0, 0]
> 0       [1, 0]
> Time taken: 2.413 seconds
> where all seven lines go to stdout, instead of lines 1, 2, and 7 going to stderr.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-275) "hive -e ''" writes non-output to stdout

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670971#action_12670971 ] 

Zheng Shao commented on HIVE-275:
---------------------------------

hive -S -e 'select * from my_table' will do what you want.
-S stands for silent.


> "hive -e '<query>'" writes non-output to stdout
> -----------------------------------------------
>
>                 Key: HIVE-275
>                 URL: https://issues.apache.org/jira/browse/HIVE-275
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: S. Alex Smith
>
> A command like: hive -e 'select * from my_table' produces output like:
> Hive history file=/tmp/asmith/hive_job_log_asmith_200902051423_1455103524.txt
> OK
> 1       [4, 4]
> 1       [0, 1]
> 0       [0, 0]
> 0       [1, 0]
> Time taken: 2.413 seconds
> where all seven lines go to stdout, instead of lines 1, 2, and 7 going to stderr.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-275) split log output from "hive -e ''" to something other than stdout

Posted by "S. Alex Smith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670976#action_12670976 ] 

S. Alex Smith commented on HIVE-275:
------------------------------------

I see my update was out of sync with your comments.

Yeah, -S seems to be what I want, although it would be nice to be able to get the log messages without having them pollute the output (as now requested).  Certainly not vital.

> split log output from "hive -e '<query>'" to something other than stdout
> ------------------------------------------------------------------------
>
>                 Key: HIVE-275
>                 URL: https://issues.apache.org/jira/browse/HIVE-275
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Clients
>            Reporter: S. Alex Smith
>            Priority: Minor
>
> A command like: hive -e 'select * from my_table' produces output like:
> Hive history file=/tmp/asmith/hive_job_log_asmith_200902051423_1455103524.txt
> OK
> 1       [4, 4]
> 1       [0, 1]
> 0       [0, 0]
> 0       [1, 0]
> Time taken: 2.413 seconds
> all of which goes to stdout.  The non-data messages can be removed using '-s', but it would be nice to have a way to instead redirect them to (for example) stderr.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-275) split log output from "hive -e ''" to something other than stdout

Posted by "S. Alex Smith (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S. Alex Smith updated HIVE-275:
-------------------------------

       Priority: Minor  (was: Major)
    Description: 
A command like: hive -e 'select * from my_table' produces output like:
Hive history file=/tmp/asmith/hive_job_log_asmith_200902051423_1455103524.txt
OK
1       [4, 4]
1       [0, 1]
0       [0, 0]
0       [1, 0]
Time taken: 2.413 seconds

all of which goes to stdout.  The non-data messages can be removed using '-s', but it would be nice to have a way to instead redirect them to (for example) stderr.

  was:
A command like: hive -e 'select * from my_table' produces output like:
Hive history file=/tmp/asmith/hive_job_log_asmith_200902051423_1455103524.txt
OK
1       [4, 4]
1       [0, 1]
0       [0, 0]
0       [1, 0]
Time taken: 2.413 seconds

where all seven lines go to stdout, instead of lines 1, 2, and 7 going to stderr.

     Issue Type: Improvement  (was: Bug)
        Summary: split log output from "hive -e '<query>'" to something other than stdout  (was: "hive -e '<query>'" writes non-output to stdout)

> split log output from "hive -e '<query>'" to something other than stdout
> ------------------------------------------------------------------------
>
>                 Key: HIVE-275
>                 URL: https://issues.apache.org/jira/browse/HIVE-275
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Clients
>            Reporter: S. Alex Smith
>            Priority: Minor
>
> A command like: hive -e 'select * from my_table' produces output like:
> Hive history file=/tmp/asmith/hive_job_log_asmith_200902051423_1455103524.txt
> OK
> 1       [4, 4]
> 1       [0, 1]
> 0       [0, 0]
> 0       [1, 0]
> Time taken: 2.413 seconds
> all of which goes to stdout.  The non-data messages can be removed using '-s', but it would be nice to have a way to instead redirect them to (for example) stderr.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.