You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Benoit Sigoure (JIRA)" <ji...@apache.org> on 2011/06/10 00:11:59 UTC

[jira] [Created] (HBASE-3973) HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY

HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY
----------------------------------------------------------------------

                 Key: HBASE-3973
                 URL: https://issues.apache.org/jira/browse/HBASE-3973
             Project: HBase
          Issue Type: Improvement
          Components: shell
            Reporter: Benoit Sigoure
            Assignee: Benoit Sigoure
            Priority: Minor


In the HBase shell, when the output isn't a TTY, the shell assumes the "terminal" to be 100 characters wide.  The way the shell wraps things around makes it very hard to script the output of the shell (e.g. redirect the output to a file and then work on that file, or pipe the output to another command).

When stdout isn't a TTY, the shell shouldn't try to wrap things around.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3973) HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY

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

Benoit Sigoure updated HBASE-3973:
----------------------------------

    Attachment: hbase-hirb-formatter.patch

Patch to fix the issue.

> HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY
> ----------------------------------------------------------------------
>
>                 Key: HBASE-3973
>                 URL: https://issues.apache.org/jira/browse/HBASE-3973
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Benoit Sigoure
>            Assignee: Benoit Sigoure
>            Priority: Minor
>         Attachments: hbase-hirb-formatter.patch
>
>
> In the HBase shell, when the output isn't a TTY, the shell assumes the "terminal" to be 100 characters wide.  The way the shell wraps things around makes it very hard to script the output of the shell (e.g. redirect the output to a file and then work on that file, or pipe the output to another command).
> When stdout isn't a TTY, the shell shouldn't try to wrap things around.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-3973) HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY

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

stack updated HBASE-3973:
-------------------------

       Resolution: Fixed
    Fix Version/s: 0.90.4
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Committed branch and trunk.  Thanks B.

> HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY
> ----------------------------------------------------------------------
>
>                 Key: HBASE-3973
>                 URL: https://issues.apache.org/jira/browse/HBASE-3973
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Benoit Sigoure
>            Assignee: Benoit Sigoure
>            Priority: Minor
>             Fix For: 0.90.4
>
>         Attachments: hbase-hirb-formatter.patch
>
>
> In the HBase shell, when the output isn't a TTY, the shell assumes the "terminal" to be 100 characters wide.  The way the shell wraps things around makes it very hard to script the output of the shell (e.g. redirect the output to a file and then work on that file, or pipe the output to another command).
> When stdout isn't a TTY, the shell shouldn't try to wrap things around.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-3973) HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050987#comment-13050987 ] 

Hudson commented on HBASE-3973:
-------------------------------

Integrated in HBase-TRUNK #1976 (See [https://builds.apache.org/job/HBase-TRUNK/1976/])
    

> HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY
> ----------------------------------------------------------------------
>
>                 Key: HBASE-3973
>                 URL: https://issues.apache.org/jira/browse/HBASE-3973
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Benoit Sigoure
>            Assignee: Benoit Sigoure
>            Priority: Minor
>             Fix For: 0.90.4
>
>         Attachments: hbase-hirb-formatter.patch
>
>
> In the HBase shell, when the output isn't a TTY, the shell assumes the "terminal" to be 100 characters wide.  The way the shell wraps things around makes it very hard to script the output of the shell (e.g. redirect the output to a file and then work on that file, or pipe the output to another command).
> When stdout isn't a TTY, the shell shouldn't try to wrap things around.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-3973) HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY

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

Benoit Sigoure updated HBASE-3973:
----------------------------------

    Status: Patch Available  (was: Open)

> HBase IRB shell: Don't pretty-print the output when stdout isn't a TTY
> ----------------------------------------------------------------------
>
>                 Key: HBASE-3973
>                 URL: https://issues.apache.org/jira/browse/HBASE-3973
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Benoit Sigoure
>            Assignee: Benoit Sigoure
>            Priority: Minor
>         Attachments: hbase-hirb-formatter.patch
>
>
> In the HBase shell, when the output isn't a TTY, the shell assumes the "terminal" to be 100 characters wide.  The way the shell wraps things around makes it very hard to script the output of the shell (e.g. redirect the output to a file and then work on that file, or pipe the output to another command).
> When stdout isn't a TTY, the shell shouldn't try to wrap things around.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira