Changes between Initial Version and Version 1 of jazz/13-08-14


Ignore:
Timestamp:
Aug 14, 2013, 10:08:22 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/13-08-14

    v1 v1  
     1= 2013-08-14 =
     2
     3{{{
     4#!html
     5<br /> with_country = STREAM notbots THROUGH `ipwrapper.sh $GEO`<br /> AS (country_code, country, state, city, ip, time, uri, bytes, userAgent);</p>
     6<p>geo_uri_groups = GROUP with_country BY country_code;</p>
     7<p>geo_uri_group_counts = FOREACH geo_uri_groups GENERATE<br /> group,<br /> COUNT(with_country) AS cnt,<br /> SUM(with_country.bytes) AS total_bytes;</p>
     8<p>geo_uri_group_counts = ORDER geo_uri_group_counts BY cnt DESC;</p>
     9<p>STORE geo_uri_group_counts INTO 'by_country.tsv';<br />
     10}}}