
Hive
liuhui_306
这个作者很懒,什么都没留下…
展开
-
hive 执行sql客户端异常
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient未启动hive元原创 2014-08-19 18:01:59 · 1228 阅读 · 0 评论 -
hive SQL优化之distribute by和sort by
最近在优化hiveSQL,下面是一段排序,分组后取每组第一行记录的SQLINSERT OVERWRITE TABLE t_wa_funnel_distinct_temp PARTITION (pt='${SRCTIME}') SELECT bussiness_id, cookie_id, session_id, funnel_原创 2014-07-22 17:21:10 · 3155 阅读 · 0 评论 -
Number of dynamic partitions exceeded hive.exec.max.dynamic.partitions.pernode
动态分区数太大的问题:[Fatal Error] Operator FS_2 (id=2): Number of dynamic partitions exceeded hive.exec.max.dynamic.partitions.pernode.hive> insert into table sogouq_test partition(query_time) select use原创 2014-08-27 16:01:14 · 6229 阅读 · 0 评论 -
hive MetaException
Exception in thread "main" MetaException(message:Version information not found in metastore. ) at org.apache.hadoop.hive.metastore.ObjectStore.checkSchema(ObjectStore.java:5638) at o原创 2014-08-19 17:59:59 · 2802 阅读 · 0 评论 -
hive根据日期获取星期几的方法
hive原生未提供获取一个日期是星期几的方法,所以只有我们自己编写udf函数提供,udf就不说了,在这里给出了一个使用hive原生函数获取星期几的技巧。pmod(datediff(#date#, '1920-01-01') - 3, 7) #date#表示给的日期。输出的结果为0-6的数,分别表示 日,一,二 ... 六。2016-01-01 52016-01-02 6原创 2016-02-15 13:22:27 · 35056 阅读 · 2 评论