Skip to content

该项目提供hive udf仅供经纬度转换为GeoHash使用

Notifications You must be signed in to change notification settings

matiji66/hive-geohash-udf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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;

About

该项目提供hive udf仅供经纬度转换为GeoHash使用

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages