- hive UDF 使用说明传递经纬度,经纬度成对出现,返回的GeoHash值以'|'分隔
- latitude1 longitude1 latitude2 longitude2
- hive 中使用
- add jar /var/lib/hadoop-hdfs/GetGeohash.jar;
- create temporary function getgeohash as 'com.pateo.udf.GetGeohash';
- #这个通用性比较强 ,能够处理多个经纬度对 ,返回的结果以'|'分隔
- add jar /var/lib/hadoop-hdfs/GetGeohash.jar;
- create temporary function getgeohashs as 'com.pateo.udf.GetMultiGeohash';
- #该方法创建永久的udf函数
- create function get_geo as 'com.pateo.udf.GetGeohash' USING JAR 'hdfs:///script/java/udf/GetGeohash.jar'
- DROP FUNCTION [IF EXISTS] function_name;
forked from matiji66/hive-geohash-udf
-
Notifications
You must be signed in to change notification settings - Fork 0
liangchen-datanerd/hive-geohash-udf
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
该项目提供hive udf仅供经纬度转换为GeoHash使用
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%