You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sm...@apache.org on 2013/12/04 01:36:57 UTC

svn commit: r1547655 - in /mahout/trunk: CHANGELOG integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java

Author: smarthi
Date: Wed Dec  4 00:36:57 2013
New Revision: 1547655

URL: http://svn.apache.org/r1547655
Log:
MAHOUT-1370: Vectordump doesn't write to output file in MapReduce Mode

Modified:
    mahout/trunk/CHANGELOG
    mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java

Modified: mahout/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/mahout/trunk/CHANGELOG?rev=1547655&r1=1547654&r2=1547655&view=diff
==============================================================================
--- mahout/trunk/CHANGELOG (original)
+++ mahout/trunk/CHANGELOG Wed Dec  4 00:36:57 2013
@@ -2,6 +2,8 @@ Mahout Change Log
 
 Release 0.9 - unreleased
 
+  MAHOUT-1370: Vectordump doesn't write to output file in MapReduce Mode (smarthi)
+
   MAHOUT-1367: WikipediaXmlSplitter --> Exception in thread "main" java.lang.NullPointerException (smarthi)
 
   MAHOUT-1362: Remove examples/bin/build-reuters.sh (smarthi)

Modified: mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java
URL: http://svn.apache.org/viewvc/mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java?rev=1547655&r1=1547654&r2=1547655&view=diff
==============================================================================
--- mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java (original)
+++ mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/VectorDumper.java Wed Dec  4 00:36:57 2013
@@ -148,6 +148,8 @@ public final class VectorDumper extends 
     File output = getOutputFile();
     if (output != null) {
       shouldClose = true;
+      log.info("Output file: {}", output);
+      Files.createParentDirs(output);
       writer = Files.newWriter(output, Charsets.UTF_8);
     } else {
       shouldClose = false;