[ https://issues.apache.org/jira/browse/MAHOUT-811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13106617#comment-13106617 ]
Drew Farris commented on MAHOUT-811: ------------------------------------ {quote} Should be easy enough to do this without any cd-ing anywhere: tar xzf ${WORK_DIR}/reuters21578.tar.gz -C ${WORK_DIR}/reuters-sgm I'll patch it. {quote} Great Sean, thanks. This script also does rm -rf ${WORK_DIR} when it's done and I don't think it should. It is helpful to leave the work directories around so that you don't have to re-download the reuters tarfile and re-vectorize it should you want to run lda after trying kmeans. It's also helpful also to leave these files around for those curious to inspect the output files. This behavior wasn't introduced in the patch, but I just noticed it while testing. > Mahout examples try to write to examples/bin/work, which may not be writeable > by current user > --------------------------------------------------------------------------------------------- > > Key: MAHOUT-811 > URL: https://issues.apache.org/jira/browse/MAHOUT-811 > Project: Mahout > Issue Type: Bug > Components: Examples > Affects Versions: 0.5 > Reporter: Andrew Bayer > Assignee: Drew Farris > Fix For: 0.6 > > Attachments: MAHOUT-811.diff.txt > > > The examples in examples/bin create subdirectories (either work or > mahout-work) in that directory and write to those subdirectories. This works > fine if the current user has write access to examples/bin, but if not (such > as in the case of the package generated by Bigtop, in which the files are > installed to /usr/lib/mahout and owned by root), the examples can't run. This > is causing BIGTOP-96, but needs to be fixed in Mahout. The patch I'm > attaching changes all the references to work, examples/bin/work, and > mahout-work to instead use /tmp/mahout-work-${USER}, which will be writeable. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira