You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2008/12/19 02:17:44 UTC

[jira] Created: (HIVE-188) hive CLI should quit when stdout is closed

hive CLI should quit when stdout is closed
------------------------------------------

                 Key: HIVE-188
                 URL: https://issues.apache.org/jira/browse/HIVE-188
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Clients
            Reporter: Zheng Shao


bin/hive -e 'select * from a_big_table;' | head

The process does not end after printing out the first 10 lines.

This is probably because System.out.println is not checking errors. We need to manually call boolean System.out.checkError() to know if the output is closed or not.


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


[jira] Updated: (HIVE-188) hive CLI should quit when stdout is closed

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

Zheng Shao updated HIVE-188:
----------------------------

    Attachment: HIVE-188-1.patch

> hive CLI should quit when stdout is closed
> ------------------------------------------
>
>                 Key: HIVE-188
>                 URL: https://issues.apache.org/jira/browse/HIVE-188
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: Zheng Shao
>         Attachments: HIVE-188-1.patch
>
>
> bin/hive -e 'select * from a_big_table;' | head
> The process does not end after printing out the first 10 lines.
> This is probably because System.out.println is not checking errors. We need to manually call boolean System.out.checkError() to know if the output is closed or not.

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


[jira] Resolved: (HIVE-188) hive CLI should quit when stdout is closed

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

Zheng Shao resolved HIVE-188.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 0.2.0
     Release Note: HIVE-188. Hive CLI quits when stdout is closed.
     Hadoop Flags: [Reviewed]

Committed revision 727925.

> hive CLI should quit when stdout is closed
> ------------------------------------------
>
>                 Key: HIVE-188
>                 URL: https://issues.apache.org/jira/browse/HIVE-188
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: Zheng Shao
>             Fix For: 0.2.0
>
>         Attachments: HIVE-188-1.patch
>
>
> bin/hive -e 'select * from a_big_table;' | head
> The process does not end after printing out the first 10 lines.
> This is probably because System.out.println is not checking errors. We need to manually call boolean System.out.checkError() to know if the output is closed or not.

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


[jira] Assigned: (HIVE-188) hive CLI should quit when stdout is closed

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

Zheng Shao reassigned HIVE-188:
-------------------------------

    Assignee: Zheng Shao

> hive CLI should quit when stdout is closed
> ------------------------------------------
>
>                 Key: HIVE-188
>                 URL: https://issues.apache.org/jira/browse/HIVE-188
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>             Fix For: 0.2.0
>
>         Attachments: HIVE-188-1.patch
>
>
> bin/hive -e 'select * from a_big_table;' | head
> The process does not end after printing out the first 10 lines.
> This is probably because System.out.println is not checking errors. We need to manually call boolean System.out.checkError() to know if the output is closed or not.

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


[jira] Commented: (HIVE-188) hive CLI should quit when stdout is closed

Posted by "Joydeep Sen Sarma (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657989#action_12657989 ] 

Joydeep Sen Sarma commented on HIVE-188:
----------------------------------------

+1

interesting bug. i guess this affects any place where we call println() - but probably this is the most significant one. Hadoop FSShell (for example) seems to go throw a common library for all printstream IO

> hive CLI should quit when stdout is closed
> ------------------------------------------
>
>                 Key: HIVE-188
>                 URL: https://issues.apache.org/jira/browse/HIVE-188
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: Zheng Shao
>         Attachments: HIVE-188-1.patch
>
>
> bin/hive -e 'select * from a_big_table;' | head
> The process does not end after printing out the first 10 lines.
> This is probably because System.out.println is not checking errors. We need to manually call boolean System.out.checkError() to know if the output is closed or not.

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


[jira] Updated: (HIVE-188) hive CLI should quit when stdout is closed

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

Carl Steinbach updated HIVE-188:
--------------------------------

    Fix Version/s: 0.3.0
                       (was: 0.6.0)

> hive CLI should quit when stdout is closed
> ------------------------------------------
>
>                 Key: HIVE-188
>                 URL: https://issues.apache.org/jira/browse/HIVE-188
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Clients
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>             Fix For: 0.3.0
>
>         Attachments: HIVE-188-1.patch
>
>
> bin/hive -e 'select * from a_big_table;' | head
> The process does not end after printing out the first 10 lines.
> This is probably because System.out.println is not checking errors. We need to manually call boolean System.out.checkError() to know if the output is closed or not.

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