pig-user  

Re: GeoIP UDF

Johannes Rußek
Thu, 18 Mar 2010 11:59:34 -0700

Hello Everybody,
i've written a wrapper class for the GeoIP api, but now i'm trying to access the GeoIP.dat file which i've added to hdfs via hadoop dfs -put GeoIP.dat GeoIP.dat and added to the cache in pig.properties via mapred.cache.files=hdfs://localhost:8020/user/root/GeoIP.dat however, it seems the geoip api is unable to open the file with './GeoIP.dat' as path. What should i use for this?
Regards,
Johannes