/** * Get the record writer for the job. Uses the storagehandler's OutputFormat * to get the record writer. * @param context the information about the current task. * @return a RecordWriter to write the output for the job. * @throws IOException */ @Override public RecordWriter<WritableComparable<?>, HCatRecord> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { String name = getOutputName(context); return new DefaultRecordWriterContainer(context, getBaseOutputFormat().getRecordWriter(null, new JobConf(context.getConfiguration()), name, InternalUtil.createReporter(context))); }
@Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { getBaseRecordWriter().close(InternalUtil.createReporter(context)); }
@Override public void write(WritableComparable<?> key, HCatRecord value) throws IOException, InterruptedException { try { getBaseRecordWriter().write(null, serDe.serialize(value.getAll(), hcatRecordOI)); } catch (SerDeException e) { throw new IOException("Failed to serialize object", e); } }
/** * Get the record writer for the job. Uses the storagehandler's OutputFormat * to get the record writer. * @param context the information about the current task. * @return a RecordWriter to write the output for the job. * @throws IOException */ @Override public RecordWriter<WritableComparable<?>, HCatRecord> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { String name = getOutputName(context); return new DefaultRecordWriterContainer(context, getBaseOutputFormat().getRecordWriter(null, new JobConf(context.getConfiguration()), name, InternalUtil.createReporter(context))); }
@Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { getBaseRecordWriter().close(InternalUtil.createReporter(context)); }
/** * Get the record writer for the job. Uses the storagehandler's OutputFormat * to get the record writer. * @param context the information about the current task. * @return a RecordWriter to write the output for the job. * @throws IOException */ @Override public RecordWriter<WritableComparable<?>, HCatRecord> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { String name = getOutputName(context); return new DefaultRecordWriterContainer(context, getBaseOutputFormat().getRecordWriter(null, new JobConf(context.getConfiguration()), name, InternalUtil.createReporter(context))); }
@Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { getBaseRecordWriter().close(InternalUtil.createReporter(context)); }
/** * Get the record writer for the job. Uses the storagehandler's OutputFormat * to get the record writer. * @param context the information about the current task. * @return a RecordWriter to write the output for the job. * @throws IOException */ @Override public RecordWriter<WritableComparable<?>, HCatRecord> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { String name = getOutputName(context.getTaskAttemptID().getTaskID().getId()); return new DefaultRecordWriterContainer(context, getBaseOutputFormat().getRecordWriter(null, new JobConf(context.getConfiguration()), name, InternalUtil.createReporter(context))); }
@Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { getBaseRecordWriter().close(InternalUtil.createReporter(context)); }
/** * Get the record writer for the job. Uses the storagehandler's OutputFormat * to get the record writer. * @param context the information about the current task. * @return a RecordWriter to write the output for the job. * @throws IOException */ @Override public RecordWriter<WritableComparable<?>, HCatRecord> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException { String name = getOutputName(context.getTaskAttemptID().getTaskID().getId()); return new DefaultRecordWriterContainer(context, getBaseOutputFormat().getRecordWriter(null, new JobConf(context.getConfiguration()), name, InternalUtil.createReporter(context))); }
@Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { getBaseRecordWriter().close(InternalUtil.createReporter(context)); }
@Override public void write(WritableComparable<?> key, HCatRecord value) throws IOException, InterruptedException { try { getBaseRecordWriter().write(null, serDe.serialize(value.getAll(), hcatRecordOI)); } catch (SerDeException e) { throw new IOException("Failed to serialize object", e); } }
@Override public void write(WritableComparable<?> key, HCatRecord value) throws IOException, InterruptedException { try { getBaseRecordWriter().write(null, serDe.serialize(value.getAll(), hcatRecordOI)); } catch (SerDeException e) { throw new IOException("Failed to serialize object", e); } }
@Override public void write(WritableComparable<?> key, HCatRecord value) throws IOException, InterruptedException { try { getBaseRecordWriter().write(null, serDe.serialize(value.getAll(), hcatRecordOI)); } catch (SerDeException e) { throw new IOException("Failed to serialize object", e); } }
@Override public void write(WritableComparable<?> key, HCatRecord value) throws IOException, InterruptedException { try { getBaseRecordWriter().write(null, serDe.serialize(value.getAll(), hcatRecordOI)); } catch (SerDeException e) { throw new IOException("Failed to serialize object", e); } }