Skip to content

Commit

Permalink
Update MapperClass.java
Browse files Browse the repository at this point in the history
Don't skip first line in mapper as the sample earthquake data no long has a header
  • Loading branch information
climbage committed Aug 19, 2014
1 parent 344ac18 commit 95c8e62
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ public void map(LongWritable key, Text val, Context context)
* The key is the byte offset to the first character in the line. The value is the text of the line.
*/

// We know that the first line of the CSV is just headers, so at byte offset 0 we can just return
if (key.get() == 0) return;


String line = val.toString();
String [] values = line.split(",");

Expand Down

0 comments on commit 95c8e62

Please sign in to comment.