venrad / Hive

All Custom Serde's or UDFs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hive

Hive UDF to calculate the distance between two places given the latitude and longitudes of the places. usage

hive> Add jar ; hive> Create temporary function geodistance as 'com.venk.hive.udf.UDFGeoDistance'; hive> SELECT geodistance(lat1, lon1, lat2, lon2) FROM table_with_lats_lons;

The Detailed explanations of the formalae could be found in the link below

http://ragrawal.wordpress.com/2009/07/11/calculating-geographic-distance/

About

All Custom Serde's or UDFs

License:MIT License


Languages

Language:Java 100.0%