(0)
类:
org.apache.mahout.clustering.spectral.common.VectorMatrixMultiplicationJob
方法:
public static DistributedRowMatrix runJob(Path markovPath, Vector diag, Path outputPath)
throws IOException, ClassNotFoundException, InterruptedException
修改前语句:
return runJob(markovPath, diag, outputPath, new Path(outputPath, "tmp"));
修改后语句:
return runJob(markovPath, diag, outputPath, new Path(outputPath, "_tmp"));
(1)
类:
org.apache.mahout.classifier.df.mapreduce.BuildForest
方法:
private void buildForest() throws IOException, ClassNotFoundException, InterruptedException
修改前语句:
forestBuilder.setOutputDirName(outputPath.getName());
修改后语句:
forestBuilder.setOutputDirName(outputPath.toString());
(2)
类:
org.apache.mahout.classifier.df.mapreduce.Builder
方法:
public Path getOutputPath(Configuration conf) throws IOException
修改前语句:
FileSystem fs = FileSystem.get(conf);
return new Path(fs.getWorkingDirectory(), outputDirName);
修改后语句:
FileSystem fs = FileSystem.get(conf);
return fs.makeQualified(new Path(outputDirName));
类:
org.apache.mahout.clustering.spectral.common.VectorMatrixMultiplicationJob
方法:
public static DistributedRowMatrix runJob(Path markovPath, Vector diag, Path outputPath)
throws IOException, ClassNotFoundException, InterruptedException
修改前语句:
return runJob(markovPath, diag, outputPath, new Path(outputPath, "tmp"));
修改后语句:
return runJob(markovPath, diag, outputPath, new Path(outputPath, "_tmp"));
(1)
类:
org.apache.mahout.classifier.df.mapreduce.BuildForest
方法:
private void buildForest() throws IOException, ClassNotFoundException, InterruptedException
修改前语句:
forestBuilder.setOutputDirName(outputPath.getName());
修改后语句:
forestBuilder.setOutputDirName(outputPath.toString());
(2)
类:
org.apache.mahout.classifier.df.mapreduce.Builder
方法:
public Path getOutputPath(Configuration conf) throws IOException
修改前语句:
FileSystem fs = FileSystem.get(conf);
return new Path(fs.getWorkingDirectory(), outputDirName);
修改后语句:
FileSystem fs = FileSystem.get(conf);
return fs.makeQualified(new Path(outputDirName));