HBASE-11212 Fix increment index in KeyValueSortReducer. (Gustavo Anatoly)
This commit is contained in:
parent
46e53b089a
commit
dd9ac0c0ad
|
@ -51,7 +51,7 @@ public class KeyValueSortReducer extends Reducer<ImmutableBytesWritable, KeyValu
|
|||
int index = 0;
|
||||
for (KeyValue kv: map) {
|
||||
context.write(row, kv);
|
||||
if (index > 0 && index % 100 == 0) context.setStatus("Wrote " + index);
|
||||
if (++index % 100 == 0) context.setStatus("Wrote " + index);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue