从“配置单元”选项卡中的ip地址查找地理位置

2024-04-28 08:21:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个有ip地址的配置单元表。如何从中找到地理位置,如城市、邮政编码?在

hive> desc ad_data;
OK
ad_id string 
id_segment bigint 
ip string 
datecreate string 
action string 
utc_date string 
utc_hour string

有没有python代码可以提供city、zip-from-ip地址或hive-udf和jar?在

谢谢 里约热内卢


Tags: ipiddatastring地址segmentok地理位置