摘要: 一、修改表结构 1、添加删除分区 添加分区:alter table app.app_tabe1 add if not exists partition(dt = '20210621', hour = '17'); 删除分区:alter table app.app_tab1 drop partitio 阅读全文
posted @ 2021-09-02 20:48 Robots2 阅读(158) 评论(0) 推荐(0)
摘要: 一、下载安装 sudo apt-get install mysql-server 二、初始化配置 查看密码:sudo more /etc/mysql/debian.cnf 连接:mysql -uroot -h 127.0.0.1 -p 修改初始密码: use mysql; update mysql. 阅读全文
posted @ 2021-08-30 21:01 Robots2 阅读(225) 评论(0) 推荐(0)
摘要: 一、建表语句 create table target_tab( version_flag bigint comment '版本标签 2:web延迟 3ios直播延迟 4安卓直播延迟', query_version string comment '查询版本号', is_video int commen 阅读全文
posted @ 2021-08-26 15:28 Robots2 阅读(40) 评论(0) 推荐(0)
摘要: 一、建表语句 create table dws_bhv_habo_measure_lostrate_mb_di( version_flag bigint comment '版本标签 2:web丢失 3ios直播丢失 4安卓直播丢失', query_version string comment '查询 阅读全文
posted @ 2021-08-26 15:25 Robots2 阅读(125) 评论(0) 推荐(0)
摘要: 模型代码,解析json和打标签 一、建表语句 create table target_tab( event_time bigint comment '事件时间', event_timestamp bigint comment '事件时间戳', video_time bigint comment '直 阅读全文
posted @ 2021-08-26 15:21 Robots2 阅读(160) 评论(0) 推荐(0)
摘要: 一、索引 1、查看表索引 show keys from test_table 2、删除索引或唯一约束UNIQUE KEY drop index crisis_id on test_table; ALTER TABLE test_tab1 DROP KEY udx_entry_pk_id_creato 阅读全文
posted @ 2021-08-12 10:45 Robots2 阅读(116) 评论(0) 推荐(0)
摘要: 一、常用名词 1、Slot:处理槽,一般为服务器核数*4,平分服务器内存 2、Window:时间窗口 滚动窗口(Tumbling Window)将事件拆分成固定长度,窗口之间不重叠,窗口长度固定 例:每10s统计过去10s订单数据 滑动窗口(Sliding Window)按照滑动步长拆分成固定长度, 阅读全文
posted @ 2021-08-06 10:13 Robots2 阅读(359) 评论(0) 推荐(0)
摘要: 一、常用指令 1、Vim (1)命令行模式 :wq 保存退出 :q! 不保留强制退出控制台 :q 退出控制台 u 恢复上一次操作 set nu 列出行号 :5 跳到第5行 /搜索内容 n搜索下一个 1$ 移动到当前行行尾 0 移动到当前行行首 (2)插入模式 i 开始编辑,从当前位置输入文字 a 开 阅读全文
posted @ 2021-08-05 17:37 Robots2 阅读(269) 评论(0) 推荐(0)
摘要: 1、Classes说明 【1】Class 类 【2】Interface 接口 【8】Generalization A与B的泛化关系,A继承B。继承非抽象类 【9】Interface Realization A与B的实现关系,A实现B。继承接口或抽象类 【3】Association 关联关系 表示形式 阅读全文
posted @ 2021-08-03 16:14 Robots2 阅读(1081) 评论(0) 推荐(0)
摘要: 版本 Flink flink-1.13.1-bin-scala_2.11.tgz 依赖scala2.12 一、下载 https://archive.apache.org/dist/flink/ 解压:tar -zxf flink-1.7.2-bin-hadoop27-scala_2.11.tgz 二 阅读全文
posted @ 2021-07-29 14:56 Robots2 阅读(778) 评论(0) 推荐(0)