Skip to content
GeoIP Functions for hive
Find file
Failed to load latest commit information.
src Yea man we need UDF power for GEO IP May 22, 2012


GeoIP Functions for hive

add file GeoIP.dat;
add jar geo-ip-java.jar;
add jar hive-udf-geo-ip-jtg.jar;
create temporary function geoip as 'com.jointhegrid.hive.udf.GenericUDFGeoIP';
select geoip(first, 'COUNTRY_NAME',  './GeoIP.dat' ) from a;

You need a geoip database extracted(separately licenced) found here:

Something went wrong with that request. Please try again.