I am experiencing the following situation:
I uploaded the compiled jar from https://github.com/Spuul/hive-udfs and the file GeoLite2-Country.mmdb from http://dev.maxmind.com/geoip/geoip2/geolite2/ to the HDFS. I have performed the steps as described in the README file of the project:
ADD JAR <hdfs_location>/hive-udf-0.1-SNAPSHOT.jar; ADD FILE <hdfs_location>/GeoLite2-Country.mmdb; CREATE TEMPORARY FUNCTION geoip as 'com.spuul.hive.GeoIP2';
All these commands return OK and execute with no problem. However, when I do this:
SELECT geoip('184.108.40.206', 'COUNTRY_NAME', './GeoLite2-Country.mmdb');
This query does not execute and returns the following error:
FAILED: UnsupportedOperationException ./GeoLite2-Country.mmdb (No such file or directory)
Does anyone know the cause of this problem?
Thanks in advance.