Path getLocalAttemptOutput(OutputAttemptContext context) throws IOException { assert context != null; Path tempPath = HadoopDataSourceUtil.getLocalTemporaryDirectory(profile.getLocalFileSystem()); String suffix = String.format("%s-%s-%s", //$NON-NLS-1$ context.getTransactionId(), context.getAttemptId(), context.getOutputId()); return append(tempPath, suffix); }