pipe = new Each( pipe, new Fields( "line" ), new RegexParser( new Fields( "ip" ), "^[^ ]*" ), new Fields( "ip" ) );
pipe = new Each( pipe, new InsertRawBytes( new Fields( "bytes" ), "inserted text as bytes", true, true ), Fields.ALL );
Fields bytes = new Fields( "bytes" );
bytes.setComparator( "bytes", new BytesComparator() );
pipe = new GroupBy( pipe, bytes );
pipe = new Every( pipe, new Count(), new Fields( "bytes", "count" ) );
Tap sink = new Hfs( new SequenceFile( Fields.ALL ), getOutputPath( "grouponbytes" ), SinkMode.REPLACE );