基本上,我正在使用Maxmind GeoLiteCity.dat来处理一些IP,我把它放在主服务器上的本地文件系统(file:///home/hadoop/GeoLiteCity.dat). )上。下面是前面的一个问题,我使用了sc.addFile:然后用这样的方式调用它:
val ipLookups我必须以某种方式将<e
SELECT count(locId) AS antal , locId WHERE (1835880985>= startIpNum AND 18358809851843488110 <= endIpNum)这张桌子看起来像这样
CREATE TABLE IF NOT EXISTS `geolitecity_block------+---------+------+------+-----------
我是一个新手,正在尝试使用geoiplookup -f GeoLiteCity.dat命令批量查找ip。To make it more clear;[geoiplookup -f GeoLiteCity.dat IP2][geoiplookup -f GeoLiteCity.dat IP700]
and save them as one text file.