Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E03EA92E5 for ; Sun, 9 Oct 2011 19:31:51 +0000 (UTC) Received: (qmail 5640 invoked by uid 500); 9 Oct 2011 19:31:51 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 5592 invoked by uid 500); 9 Oct 2011 19:31:51 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 5584 invoked by uid 99); 9 Oct 2011 19:31:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2011 19:31:51 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2011 19:31:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AE9EC2B1F6F for ; Sun, 9 Oct 2011 19:31:29 +0000 (UTC) Date: Sun, 9 Oct 2011 19:31:29 +0000 (UTC) From: "Sebastian Schelter (Commented) (JIRA)" To: dev@mahout.apache.org Message-ID: <498042242.13034.1318188689716.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1626095318.12706.1318167509713.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAHOUT-834) rowsimilarityjob doesn't clean it's temp dir, and fails when seeing it again MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAHOUT-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123759#comment-13123759 ] Sebastian Schelter commented on MAHOUT-834: ------------------------------------------- Isn't that the standard behavior of all jobs? Maybe we should a generic option that makes a job delete the temp dir if it already exists. > rowsimilarityjob doesn't clean it's temp dir, and fails when seeing it again > ---------------------------------------------------------------------------- > > Key: MAHOUT-834 > URL: https://issues.apache.org/jira/browse/MAHOUT-834 > Project: Mahout > Issue Type: Bug > Components: Integration > Reporter: Dan Brickley > Priority: Minor > > If I do this: > mahout rowsimilarity --input matrixified/matrix --output sims/ --numberOfColumns 27684 --similarityClassname SIMILARITY_LOGLIKELIHOOD --excludeSelfSimilarity > then clean my output and rerun, > rm -rf sims/ # (though this step doesn't even seem needed) > then try again: > mahout rowsimilarity --input matrixified/matrix --output sims/ --numberOfColumns 27684 --similarityClassname SIMILARITY_LOGLIKELIHOOD --excludeSelfSimilarity > The temp files left from the first run make a re-run impossible - we get: "Exception in thread "main" org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory temp/weights already exists". > Manually deleting the temp directory fixes this. > I get same behaviour if I explicitly pass in a --tempdir path, e.g.: > mahout rowsimilarity --input matrixified/matrix --output sims/ --numberOfColumns 27684 --similarityClassname SIMILARITY_LOGLIKELIHOOD --excludeSelfSimilarity --tempDir tmp2/ > Presumably something like HadoopUtil.delete(getConf(),tempDirPath) is needed somewhere? (and maybe --overwrite too ?) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira