摘要: HIVE提供了很多函数,但这些函数只能满足一般的需求,针对复杂的业务分析,需要自己开发适合业务需求的函数。如何开发HIVE的UDF/UDAF/UDTF,请参看如下博客介绍的自定义函数的模板:http://hugh-wangp.iteye.com/blog/1472371如何在HIVE中使用自己定义的函数,可以有几种方式:1.在HIVE会话中add 自定义函数的jar文件,然后创建function,继而使用函数2.在进入HIVE会话之前先自动执行创建function,不用用户手工创建3.把自定义的函数写到系统函数中,使之成为HIVE的一个默认函数,这样就不需要create temporary f 阅读全文
posted @ 2012-11-06 12:38 ccmaotang 阅读(1709) 评论(0) 推荐(0)
摘要: link:http://www.hadoopor.com/archiver/tid-71.html14:09/08/31 18:25:45 INFO hdfs.DFSClient: Exception in createBlockOutputStream java.io.IOException:Bad connect ack with firstBadLink 192.168.1.11:50010> 09/08/31 18:25:45 INFO hdfs.DFSClient: Abandoning block blk_-8575812198227241296_1001> 09/08 阅读全文
posted @ 2012-11-06 11:39 ccmaotang 阅读(1395) 评论(0) 推荐(0)