Open mshirley opened 8 years ago
Seems that the path of the database file given in the geoip
method is relative to the path of the JAR.
I am no expert in this, I only used the files on the local file system. Both in root folder of the user launching hive.
From the API it looks like it only supports reading from local file. HDFS is not supported. https://github.com/maxmind/GeoIP2-java
I'd like to load the GeoLite2-City.mmdb file from HDFS but hive-udfs can't read it because it's not clear what the file path is. The only way I can get it to work is execute 'list files', copy the tmp directory location then use that in the function.