尔尔辞挽

导航

2025年3月20日 #

bug记录

摘要: 在SQL代码开发过程中,发现临时表自己和自己inner join时出现数据量减少,对比后,经查是因为在临时表中存在窗口函数排序,而关联时前面的临时表会执行2次,这两次执行过程中取得id不同,导致结果数据关联不上,从而导致数据量减少。 阅读全文

posted @ 2025-03-20 16:51 尔尔辞挽 阅读(2) 评论(0) 推荐(0)

2023年2月15日 #

hive中的列转行

摘要: 1、建表 create table crisps_test.tmp_test1( col1 string, col2 string, col3 string, col4 string )row format delimited fields terminated by '\t'; 2、构建测试数据 阅读全文

posted @ 2023-02-15 17:27 尔尔辞挽 阅读(165) 评论(0) 推荐(0)

hive中的行转列

摘要: 1、建表 create table tmp_test (col1 string, col2 string, bian string) row format delimited fields terminated by '\t' stored as textfile; 2、构建测试数据 vi row_ 阅读全文

posted @ 2023-02-15 16:03 尔尔辞挽 阅读(148) 评论(0) 推荐(0)

2022年12月22日 #

HIVE如何获取当前日期的前两个工作日及后三个工作日

摘要: 1 create temporary table if not exists tmp as 2 select 3 cur_date, 4 if_workday, 5 sum(if_workday) over (order by cur_date asc) lg 6 FROM 7 ( 8 select 阅读全文

posted @ 2022-12-22 14:18 尔尔辞挽 阅读(330) 评论(0) 推荐(0)

时间维表的建立

摘要: -- 建表create table if not exists crisps_dim.dim_com_date_info ( cur_date date comment '自然日期', yes_date string comment '昨日', tom_date string comment '明日 阅读全文

posted @ 2022-12-22 14:01 尔尔辞挽 阅读(66) 评论(0) 推荐(0)

2022年1月9日 #

启动 kylin 时遇到如下报错(Hadoop3 环境下可能出现):com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V

摘要: 报错信息如下: Caused by: java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V at org.apac 阅读全文

posted @ 2022-01-09 12:42 尔尔辞挽 阅读(1001) 评论(0) 推荐(0)

Kylin启动时报错:ERROR [main] imps.CuratorFrameworkImpl:566 : Background exception was not retry-able or retry gave up

摘要: 报错信息如下: Retrieving hadoop conf dir... KYLIN_HOME is set to /export/servers/kylin Using cached dependency... Start to check whether we need to migrate 阅读全文

posted @ 2022-01-09 11:59 尔尔辞挽 阅读(1102) 评论(0) 推荐(0)

在HiveSQL执行过程中,报错Exception: Too many counters: 121 max=120

摘要: 报错信息如下: INFO : Exception: Too many counters: 121 max=120 at org.apache.tez.common.counters.Limits.checkCounters(Limits.java:86) at org.apache.tez.comm 阅读全文

posted @ 2022-01-09 10:11 尔尔辞挽 阅读(2090) 评论(0) 推荐(0)

2021年12月10日 #

海豚调度器中踩坑

摘要: 海豚调度器中zk信息无法读取,所有的信息显示 -1。 解决方法: zoo.cfg 末尾加一行 4lw.commands.whitelist=* 阅读全文

posted @ 2021-12-10 05:48 尔尔辞挽 阅读(477) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示