上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: 修改表的文件存储格式组织方式: ALTER TABLE table_name SET FILEFORMAT file_format alter table table_name set fileformat rcfile ALTER TABLE table_name CLUSTERED BY (co 阅读全文
posted @ 2021-08-19 10:23 star521 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: 4 主意:collect_set 只能返回不重复的集合 若要返回带重复的要用collect_list 组内拼接排序 select occur_period , sort_array(collect_list(num_jdz_2)) from qhtest.num_zws_update_test gr 阅读全文
posted @ 2021-08-19 10:20 star521 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: hive递增 insert into table user_tables select ( concat ('sz000',row_number() over() ) ) 左填充 lpad() 右填充 rpad() 阅读全文
posted @ 2021-08-19 10:18 star521 阅读(126) 评论(0) 推荐(0) 编辑
摘要: select occur_period ,arr_1 ,case when size(arr_1)%2=1 then arr_1[cast((size(arr_1)-1)/2 as int )] else (arr_1[cast(size(arr_1)/2 as int) ]+arr_1[cast( 阅读全文
posted @ 2021-08-19 10:17 star521 阅读(509) 评论(0) 推荐(0) 编辑
摘要: hive 里的向上取整、向下取整、四舍五入取整的实例.以及精确保留小数位数。 【四舍五入取整截取】 select round(54.56,0) round至少保留一位小数。 55.0 【向下取整截取】 SELECT FLOOR(54.56) 54 【向上取整截取】 SELECT CEILING(13 阅读全文
posted @ 2021-08-19 10:11 star521 阅读(2775) 评论(0) 推荐(0) 编辑
摘要: 选择tableName表中除了name、id、pwd之外的所有字段: set hive.support.quoted.identifiers=None; select `(name|id|pwd)?+.+` from tableName; 阅读全文
posted @ 2021-08-19 10:10 star521 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 规划 s101(master+slave) s102(master+slave) s103(slave) 将tar包分发到每个节点 [centos@s101 /home/centos]$xsync.sh flink-1.10.1-bin-scala_2.12.tgz 解压tar包 xcall.sh 阅读全文
posted @ 2021-08-17 13:03 star521 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 执行脚本完整版 [centos@s101 /home/centos]$flink run -m yarn-cluster -yt /home/centos/hadoop_dependent_jar -yjm 1024 -ytm 1536 -yn 2 -ys 3 -yqu root.centos -y 阅读全文
posted @ 2021-08-17 11:28 star521 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: [centos@s101 /proc/92232/fd]$jps 82100 JobHistoryServer 92983 NameNode 93783 Master 92232 DFSZKFailoverController 114094 Jps [centos@s101 /proc/92232/ 阅读全文
posted @ 2021-08-17 09:44 star521 阅读(201) 评论(0) 推荐(0) 编辑
摘要: IDEA 配置文件 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchem 阅读全文
posted @ 2021-08-13 12:11 star521 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 1.规划 三台服务器 s101 //master(进程) s102 ~ s104 //worker(进程) 2.在每个主机上分别安装spark tar -zxvf /home/centos/download/spark-2.1.1-bin-hadoop2.7.tgz -C /soft/ ln -s 阅读全文
posted @ 2021-08-11 20:03 star521 阅读(135) 评论(0) 推荐(0) 编辑
摘要: search_path修改了postgresql.conf没有生效 ,应该修改这个配置postgresql.auto.conf文件 修改了postgresql.conf没有生效 优先级 postgresql.auto.conf > postgresql.conf 方法1 修改 postgresql. 阅读全文
posted @ 2021-08-05 20:57 star521 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: [root@s101 /var/lib/pgsql]#cat .bash_profile ./.bash_profile./.psql_history./.bash_history./.psqlrc .bash_profile 系统变量 .psql_history 历史操作的sql语句 .bash_ 阅读全文
posted @ 2021-08-05 16:28 star521 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 物理复制(流复制)和逻辑复制 区别 物理复制(流复制) 逻辑复制 基于wal物理复制 基于wal逻辑解析 实例级复制 可对表级复制 可对ddl操作进行复制 ddl操作不可复制 主库可读写 主库可读写 从库可读不可写 从库可读写 大版本必须一致 支持跨大版本复制 物理复制(流复制) 主库/primar 阅读全文
posted @ 2021-08-05 16:04 star521 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-08-03 20:55 star521 阅读(61) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页