@Override protected void reduce(Text key, Iterable<StringTuple> values, Context context) throws IOException, InterruptedException { Set<String> outputValues = new HashSet<String>(); for (StringTuple value : values) { outputValues.addAll(value.getEntries()); } context.write(key, new StringTuple(outputValues)); }