Skip to content

edwardcapriolo/hive-geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

hive-geoip

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: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz

About

GeoIP Functions for hive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages