1
我试图让GeoIP与配置单元一起工作。我发现这个:http://www.jointhegrid.com/hive-udf-geo-ip-jtg/index.jsp,这似乎正是我想要的。调试信息与UDF在Hive中
我建的罐子(我有没有java经验,所以我只希望我做这部分的权利),将它们添加到我的查询,并得到这个:
hive> ADD jar hive-udf-geo-ip-jtg.jar;
Added hive-udf-geo-ip-jtg.jar to class path
Added resource: hive-udf-geo-ip-jtg.jar
hive> ADD jar geo-ip-java.jar;
Added geo-ip-java.jar to class path
Added resource: geo-ip-java.jar
hive> ADD file GeoIPCity.dat;
Added resource: GeoIPCity.dat
hive> create temporary function geoip as 'com.jointhegrid.hive.udf.GenericUDFGeoIP';
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask
有没有找到出路是什么究竟是错误的? return code 1
不会告诉我太多...有没有日志文件的地方?
如果您转到作业跟踪器,作业内部的每个任务都有一个日志文件。 – 2012-01-17 22:45:02
谢谢@Steve,我忘记了深入研究!刚刚在任务尝试的系统日志中找到了我的UDF错误方式(期待它显示在失败步骤的stderr中)。 – mgamba 2013-04-11 19:44:48