Skip to content

Commit

Permalink
Add timestamp header to Flume source
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Natkins committed Aug 31, 2012
1 parent b7f2a3d commit 1c2dbf1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -105,6 +105,7 @@ public void start() {
public void onStatus(Status status) {
// The EventBuilder is used to build an event using the headers and
// the raw JSON of a tweet
headers.put("timestamp", String.valueOf(System.currentTimeMillis()));
eventList.add(EventBuilder.withBody(
DataObjectFactory.getRawJSON(status).getBytes(), headers));

Expand Down

0 comments on commit 1c2dbf1

Please sign in to comment.