
HIVE
Pluto!
这个作者很懒,什么都没留下…
展开
-
Hive解决weekofyear跨年周异常问题
-- year_weeksselect year_weeks,substr(calendar_date_a,1,10) calendar_datefrom( select ceiling(dayofyear(calendar_date)/7) year_weeks,calendar_date_a from( select calendar_date,calendar_date calendar_date_a from csv_input where --..原创 2021-03-22 21:25:19 · 1881 阅读 · 0 评论 -
Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive
Hive 执行sql报 code2 错误INFO : Query ID = root_20201015210009_fc36f3cc-2533-4857-af24-79474f803ad9INFO : Total jobs = 1INFO : Starting task [Stage-5:MAPREDLOCAL] in serial modeINFO : Execution completed successfullyINFO : MapredLocal task succeededI原创 2020-10-16 11:21:02 · 3998 阅读 · 0 评论 -
HIVE日期函数
1.时间戳函数 日期转时间戳:从1970-01-01 00:00:00 UTC到指定时间的秒数 获得当前时区的UNIX时间戳: select unix_timestamp(); 1533716607 将指定的时间转为UNIX时间戳 :select unix_t...转载 2020-10-15 00:24:31 · 365 阅读 · 0 评论