VectorWritable inputVW = new VectorWritable(v);
inputVectorPathWriter.append(NullWritable.get(), inputVW);
inputVectorPathWriter.close();
URI ivpURI = inputVectorPath.toUri();
DistributedCache.setCacheFiles(new URI[] {ivpURI}, conf);
fs.deleteOnExit(inputVectorPath);
conf.set(INPUT_VECTOR, ivpURI.toString());
conf.setBoolean(IS_SPARSE_OUTPUT, !(v instanceof DenseVector));
conf.setInt(OUTPUT_VECTOR_DIMENSION, outputVectorDim);
FileInputFormat.addInputPath(conf, matrixInputPath);