// client has renamed outputPath and saved the argv's original output path as:
if (useSingleSideOutputURI_) {
finalOutputURI = new URI(sideOutputURI_);
sideEffectPathFinal_ = null; // in-place, no renaming to final
} else {
sideFs_ = new PhasedFileSystem(sideFs_, job);
String sideOutputPath = job_.get("stream.sideoutput.dir"); // was: job_.getOutputPath()
String fileName = getSideEffectFileName(); // see HADOOP-444 for rationale
sideEffectPathFinal_ = new Path(sideOutputPath, fileName);
finalOutputURI = new URI(sideEffectPathFinal_.toString()); // implicit dfs:
}