Please add support for ASNum Edition database.
GeoLite ASN is available from there https://dev.maxmind.com/geoip/legacy/geolite/
It should return ASNum by IP address: https://github.com/maxmind/geoip-api-java/blob/master/src/test/java/com/maxmind/geoip/ASNumLookupTest.java
Looks it using same LookupService, but not works for ASNum:
cd ~ ; /usr/local/hive/bin/hive
Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-1.2.1.jar!/hive-log4j.properties
hive> add file /usr/local/src/GeoIPASNum.dat;
Added resources: [/usr/local/src/GeoIPASNum.dat]
hive> add jar /usr/local/src/hudf.jar;
Added [/usr/local/src/hudf.jar] to class path
Added resources: [/usr/local/src/hudf.jar]
hive> CREATE TEMPORARY FUNCTION iptolong as 'net.petrabarus.hiveudfs.IPToLong';
OK
Time taken: 0.723 seconds
hive> CREATE TEMPORARY FUNCTION geoip as 'net.petrabarus.hiveudfs.GeoIP';
OK
Time taken: 0.011 seconds
hive> SELECT geoip(iptolong('8.8.8.8'),'ASNum','/usr/local/src/GeoIPASNum.dat');
OK
NULL
geoiplookup -f /usr/local/src/GeoIPASNum.dat 8.8.8.8
GeoIP ASNum Edition: AS15169 Google Inc.
Please add support for ASNum Edition database.
GeoLite ASN is available from there https://dev.maxmind.com/geoip/legacy/geolite/
It should return ASNum by IP address: https://github.com/maxmind/geoip-api-java/blob/master/src/test/java/com/maxmind/geoip/ASNumLookupTest.java
Looks it using same LookupService, but not works for ASNum: