For some unknown reason Hive add their own obsolete version of the maxmind geoip db jar in the classpath. That causes classpath conflicts and breaks the UDF completely - addressed this with Maven shading.
Also, to optimise performance a bit, we reuse the DatabaseReader object - initialization with GeoIP v2 databases adds significant overhead.
For some unknown reason Hive add their own obsolete version of the maxmind geoip db jar in the classpath. That causes classpath conflicts and breaks the UDF completely - addressed this with Maven shading. Also, to optimise performance a bit, we reuse the DatabaseReader object - initialization with GeoIP v2 databases adds significant overhead.