上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 48 下一页
摘要: 1、创建存放表名文件 #一行一个表名 mkdir table_list 2、创建存放生成的canal脚本目录 mkdir result 3、脚本代码 #!/bin/bash cat table_list | while read line do touch result/$line.yml cat 阅读全文
posted @ 2021-02-22 10:00 小白啊小白,Fighting 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、第一次使用切换Root sudo passwd root 2、远程登录(xshell、secrecrt ) a)安装 sudo apt-get remove openssh-client sudo apt-get install ssh sudo apt-get update b) vim /e 阅读全文
posted @ 2021-02-19 11:56 小白啊小白,Fighting 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 1、DML MergeTree: 插入数据: 1、insert into values (...),(...); 2、insert into select from .... 3、create select from .... 4、clickhouse-client -q 'insert into 阅读全文
posted @ 2021-02-05 18:05 小白啊小白,Fighting 阅读(800) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://www.tizi365.com/archives/949.html 1、Es 时间聚合单位 public class DateHistogramInterval implements Writeable, ToXContentFragment { public static 阅读全文
posted @ 2021-02-05 16:40 小白啊小白,Fighting 阅读(7314) 评论(2) 推荐(0) 编辑
摘要: 1、错误信息 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http: 阅读全文
posted @ 2021-02-03 10:51 小白啊小白,Fighting 阅读(2397) 评论(0) 推荐(0) 编辑
摘要: 准备:请按照下面的连接安装ck的集群 https://www.cnblogs.com/ywjfx/p/14329605.html # final关键字查询最新数据,不会merge,勉强实现了at least once 保证了数据的一致性 select * from user final ; 建表语句 阅读全文
posted @ 2021-01-27 11:14 小白啊小白,Fighting 阅读(5108) 评论(3) 推荐(0) 编辑
摘要: 主要分为两大步骤:1、zookeeper安装;2、ck集群配置 一、zookeeper安装 1、安装包下载 https://www.apache.org/dyn/closer.lua/zookeeper/zookeeper-3.6.1/apache-zookeeper-3.6.1-bin.tar.g 阅读全文
posted @ 2021-01-26 12:02 小白啊小白,Fighting 阅读(1948) 评论(0) 推荐(0) 编辑
摘要: 1、视图 a) 普通视图:不会存储数据 b) 物化视图:1、储存数据;2、有引擎,在磁盘存储;3、同步映射表数据 2、表引擎Log系列 4.1 TinyLog 1、最简单的引擎 2、没有索引,没有标记块 3、写是追加写 4、数据以列字段文件存储 5、不允许同时读写 4.2 StripeLog 1、d 阅读全文
posted @ 2021-01-25 13:48 小白啊小白,Fighting 阅读(4488) 评论(0) 推荐(0) 编辑
摘要: 1、基本命令 select bar(number,0,4) from numbers(4); select now(); 数据导入:cat t.tsv| clickhouse-client --query "insert into t from tsv" 数据导出:clickhouse-client 阅读全文
posted @ 2021-01-22 18:11 小白啊小白,Fighting 阅读(2200) 评论(0) 推荐(0) 编辑
摘要: 方式一 mysql表数据导入: CREATE TABLE ck_chat ENGINE = MergeTree ORDER BY id AS SELECT * FROM mysql('localhost:3306', 'test', 'chat', 'root', 'yang156'); 其中 ck 阅读全文
posted @ 2021-01-22 17:49 小白啊小白,Fighting 阅读(2664) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 48 下一页