return super.getRecordWriter(ignored, job, name, progress);
}
protected void configureAccumuloOutputFormat(JobConf job) throws IOException {
AccumuloConnectionParameters cnxnParams = new AccumuloConnectionParameters(job);
final String tableName = job.get(AccumuloSerDeParameters.TABLE_NAME);
// Make sure we actually go the table name
Preconditions.checkNotNull(tableName,
"Expected Accumulo table name to be provided in job configuration");
// Set the necessary Accumulo information
try {
// Username/passwd for Accumulo
setAccumuloConnectorInfo(job, cnxnParams.getAccumuloUserName(),
new PasswordToken(cnxnParams.getAccumuloPassword()));
if (cnxnParams.useMockInstance()) {
setAccumuloMockInstance(job, cnxnParams.getAccumuloInstanceName());
} else {
// Accumulo instance name with ZK quorum
setAccumuloZooKeeperInstance(job, cnxnParams.getAccumuloInstanceName(),
cnxnParams.getZooKeepers());
}
// Set the table where we're writing this data
setDefaultAccumuloTableName(job, tableName);
} catch (AccumuloSecurityException e) {