You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Mat Kelcey (JIRA)" <ji...@apache.org> on 2011/06/01 07:37:47 UTC

[jira] [Created] (MAHOUT-717) LADPrintTopics only prints first topic when outputting to stdout

LADPrintTopics only prints first topic when outputting to stdout
----------------------------------------------------------------

                 Key: MAHOUT-717
                 URL: https://issues.apache.org/jira/browse/MAHOUT-717
             Project: Mahout
          Issue Type: Bug
    Affects Versions: 0.5
            Reporter: Mat Kelcey
            Priority: Minor


LDAPrintTopics uses a PrintWriter to output topics.
This PrintWriter wraps a File when an output directory is specified and System.out otherwise.
This PrintWriter is closed and recreated for each topic; which doesn't work for the System.out case (since it closes System.out)
Fix is to flush the stream and close only in the output directory case.


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

[jira] [Updated] (MAHOUT-717) LDAPrintTopics only prints first topic when outputting to stdout

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

Mat Kelcey updated MAHOUT-717:
------------------------------

    Summary: LDAPrintTopics only prints first topic when outputting to stdout  (was: LADPrintTopics only prints first topic when outputting to stdout)

> LDAPrintTopics only prints first topic when outputting to stdout
> ----------------------------------------------------------------
>
>                 Key: MAHOUT-717
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-717
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Mat Kelcey
>            Priority: Minor
>         Attachments: mahout-717.patch
>
>
> LDAPrintTopics uses a PrintWriter to output topics.
> This PrintWriter wraps a File when an output directory is specified and System.out otherwise.
> This PrintWriter is closed and recreated for each topic; which doesn't work for the System.out case (since it closes System.out)
> Fix is to flush the stream and close only in the output directory case.

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

[jira] [Updated] (MAHOUT-717) LADPrintTopics only prints first topic when outputting to stdout

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

Mat Kelcey updated MAHOUT-717:
------------------------------

    Attachment: mahout-717.patch

> LADPrintTopics only prints first topic when outputting to stdout
> ----------------------------------------------------------------
>
>                 Key: MAHOUT-717
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-717
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Mat Kelcey
>            Priority: Minor
>         Attachments: mahout-717.patch
>
>
> LDAPrintTopics uses a PrintWriter to output topics.
> This PrintWriter wraps a File when an output directory is specified and System.out otherwise.
> This PrintWriter is closed and recreated for each topic; which doesn't work for the System.out case (since it closes System.out)
> Fix is to flush the stream and close only in the output directory case.

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

[jira] [Updated] (MAHOUT-717) LADPrintTopics only prints first topic when outputting to stdout

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

Mat Kelcey updated MAHOUT-717:
------------------------------

    Attachment:     (was: mahout-717.patch)

> LADPrintTopics only prints first topic when outputting to stdout
> ----------------------------------------------------------------
>
>                 Key: MAHOUT-717
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-717
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Mat Kelcey
>            Priority: Minor
>         Attachments: mahout-717.patch
>
>
> LDAPrintTopics uses a PrintWriter to output topics.
> This PrintWriter wraps a File when an output directory is specified and System.out otherwise.
> This PrintWriter is closed and recreated for each topic; which doesn't work for the System.out case (since it closes System.out)
> Fix is to flush the stream and close only in the output directory case.

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

[jira] [Commented] (MAHOUT-717) LDAPrintTopics only prints first topic when outputting to stdout

Posted by "Sebastian Schelter (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044499#comment-13044499 ] 

Sebastian Schelter commented on MAHOUT-717:
-------------------------------------------

Seems like I accidentally fixed this ;)

> LDAPrintTopics only prints first topic when outputting to stdout
> ----------------------------------------------------------------
>
>                 Key: MAHOUT-717
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-717
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Mat Kelcey
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: mahout-717.patch
>
>
> LDAPrintTopics uses a PrintWriter to output topics.
> This PrintWriter wraps a File when an output directory is specified and System.out otherwise.
> This PrintWriter is closed and recreated for each topic; which doesn't work for the System.out case (since it closes System.out)
> Fix is to flush the stream and close only in the output directory case.

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

[jira] [Resolved] (MAHOUT-717) LDAPrintTopics only prints first topic when outputting to stdout

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

Sean Owen resolved MAHOUT-717.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6
         Assignee: Sean Owen

Looks like someone already fixed this actually -- I see new logic to only close if "!printToSystemOut"

> LDAPrintTopics only prints first topic when outputting to stdout
> ----------------------------------------------------------------
>
>                 Key: MAHOUT-717
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-717
>             Project: Mahout
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Mat Kelcey
>            Assignee: Sean Owen
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: mahout-717.patch
>
>
> LDAPrintTopics uses a PrintWriter to output topics.
> This PrintWriter wraps a File when an output directory is specified and System.out otherwise.
> This PrintWriter is closed and recreated for each topic; which doesn't work for the System.out case (since it closes System.out)
> Fix is to flush the stream and close only in the output directory case.

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