diff --git a/contrib/hadoop-consumer/src/main/java/kafka/etl/impl/DataGenerator.java b/contrib/hadoop-consumer/src/main/java/kafka/etl/impl/DataGenerator.java index 4b1d117462d..f3fb3fd9986 100644 --- a/contrib/hadoop-consumer/src/main/java/kafka/etl/impl/DataGenerator.java +++ b/contrib/hadoop-consumer/src/main/java/kafka/etl/impl/DataGenerator.java @@ -86,8 +86,7 @@ public class DataGenerator { Long timestamp = RANDOM.nextLong(); if (timestamp < 0) timestamp = -timestamp; byte[] bytes = timestamp.toString().getBytes("UTF8"); - Message message = new Message(bytes); - list.add(new KeyedMessage(_topic, null, message)); + list.add(new KeyedMessage(_topic, null, bytes)); } // send events System.out.println(" send " + list.size() + " " + _topic + " count events to " + _uri);