Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (10 sloc) 0.436 kB
8a20ce1 @edwardcapriolo Initial commit
authored
1 hive-geoip
2 ==========
3
db9baaa @edwardcapriolo Yea man we need UDF power for GEO IP
authored
4 GeoIP Functions for hive
5
6 add file GeoIP.dat;
7 add jar geo-ip-java.jar;
8 add jar hive-udf-geo-ip-jtg.jar;
9 create temporary function geoip as 'com.jointhegrid.hive.udf.GenericUDFGeoIP';
10 select geoip(first, 'COUNTRY_NAME', './GeoIP.dat' ) from a;
11
12 You need a geoip database extracted(separately licenced) found here:
13 http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
Something went wrong with that request. Please try again.