mirror of https://github.com/apache/druid.git
Merge pull request #337 from liquidm/fix_hadoop_intake_too
fix hadoop intake's parser exception catching (was too specific)
This commit is contained in:
commit
4ba8a44239
|
@ -62,7 +62,7 @@ public abstract class HadoopDruidIndexerMapper<KEYOUT, VALUEOUT> extends Mapper<
|
||||||
try {
|
try {
|
||||||
inputRow = parser.parse(value.toString());
|
inputRow = parser.parse(value.toString());
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException e) {
|
catch (Exception e) {
|
||||||
if (config.isIgnoreInvalidRows()) {
|
if (config.isIgnoreInvalidRows()) {
|
||||||
context.getCounter(HadoopDruidIndexerConfig.IndexJobCounters.INVALID_ROW_COUNTER).increment(1);
|
context.getCounter(HadoopDruidIndexerConfig.IndexJobCounters.INVALID_ROW_COUNTER).increment(1);
|
||||||
return; // we're ignoring this invalid row
|
return; // we're ignoring this invalid row
|
||||||
|
|
Loading…
Reference in New Issue