private void initCopyTableMapperReducerJob(Job job, Scan scan) throws IOException { Class<? extends TableMapper> mapper = bulkload ? CellImporter.class : Importer.class; if (readingSnapshot) { TableMapReduceUtil.initTableSnapshotMapperJob(snapshot, scan, mapper, null, null, job, true, generateUniqTempDir(true)); } else { TableMapReduceUtil.initTableMapperJob(tableName, scan, mapper, null, null, job); } }
bulkloadDir = generateUniqTempDir(false); LOG.info("HFiles will be stored at " + this.bulkloadDir); HFileOutputFormat2.setOutputPath(job, bulkloadDir);