Changes between Version 2 and Version 3 of jazz/13-08-14


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

--

Legend:

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

    v2 v3  
    11= 2013-08-14 =
    22
     3 *
    34{{{
    45#!html
    56<br /> register /home/dvryaboy/src/pig/trunk/piggybank.jar;<br /> DEFINE LogLoader<br /> org.apache.pig.piggybank.storage.apachelog.CombinedLogLoader();<br /> DEFINE DayExtractor<br /> org.apache.pig.piggybank.evaluation.util.apachelogparser.DateExtractor('yyyy-MM-dd');<br />
    67}}}
     8 *
    79{{{
    810#!html
    911<br /> %default LOGS 'access_log.small'<br /> %default GEO 'GeoLiteCity.dat'<br />
    1012}}}
     13 *
    1114{{{
    1215#!html
     
    1518<p>while (<>) {<br /> chomp;<br /> if (/([^\t]*)\t(.*)/) {<br /> my ($ip, $rest) = ($1, $2);<br /> my ($country_code, undef, $country_name, $region, $city)<br /> = $gi->get_city_record($ip);<br /> print join("\t", $country_code||'', $country_name||'',<br /> $region||'', $city||'', $ip, $rest), "\n";<br /> }<br /> }<br />
    1619}}}
     20 *
    1721{{{
    1822#!html