@Override public void map(Text key, NullWritable value, Context context) throws InterruptedException, IOException { Path inputPath = new Path(key.toString()); Path outputPath = getOutputPath(inputPath); LOG.info("copy file input=" + inputPath + " output=" + outputPath); if (copyFile(context, inputPath, outputPath)) { LOG.info("copy completed for input=" + inputPath + " output=" + outputPath); } }
@Override public void map(BytesWritable key, NullWritable value, Context context) throws InterruptedException, IOException { SnapshotFileInfo inputInfo = SnapshotFileInfo.parseFrom(key.copyBytes()); Path outputPath = getOutputPath(inputInfo); copyFile(context, inputInfo, outputPath); }
@Override public void map(BytesWritable key, NullWritable value, Context context) throws InterruptedException, IOException { SnapshotFileInfo inputInfo = SnapshotFileInfo.parseFrom(key.copyBytes()); Path outputPath = getOutputPath(inputInfo); copyFile(context, inputInfo, outputPath); }
@Override public void map(BytesWritable key, NullWritable value, Context context) throws InterruptedException, IOException { SnapshotFileInfo inputInfo = SnapshotFileInfo.parseFrom(key.copyBytes()); Path outputPath = getOutputPath(inputInfo); copyFile(context, inputInfo, outputPath); }
@Override public void map(BytesWritable key, NullWritable value, Context context) throws InterruptedException, IOException { SnapshotFileInfo inputInfo = SnapshotFileInfo.parseFrom(key.copyBytes()); Path outputPath = getOutputPath(inputInfo); copyFile(context, inputInfo, outputPath); }