smileLuckBoy

Results comments of smileLuckBoy

用的阿里的flink实时计算平台,clickhouse 的connector用的您这边的,产生的问题如下: flink cdc mysql -> clickhouse ,增量同步的时候,sink比较慢,大概在100 rows/s,数据同步延迟,甚至会对源产生背压,全量数据感觉还好。 配置如下: -- 'connector' = 'clickhouse', -- 'url' = '${secret_values.prod-clickhouse-url}', -- 'database-name' = 'crm', -- 'username' = '${secret_values.prod-clickhouse-username}', -- 'password' = '${secret_values.prod-clickhouse-password}',...

> 我这边使用没法现过这种问题,描述下你的具体场景? flink计算完成一张表后sink到clickhouse中,数据量在160左右,但是sink到ck的数据量只有120左右,并且调整sink.batch-size这个参数后,到达ck的数据量也不一样。

测试了下,发生上述情况是在upsert模式下的,走这个ClickHouseUpsertExecutor比较慢,会产生大量的mutations,走ClickHouseBatchExecutor这个就没有上述情况。是否可以采用sink一批数据后执行OPTIMIZE TABLE完成数据去重?

引擎采用replacemergingtree

非常感谢,对于有些大表来讲,即使分区后optimize table partition也会慢,按周分区,单分区大概几百万数据,耗时约6s,命令比较占内存,CDC这边60s或者5000条刷一批进去,该命令执行期间,业务查询会变得不稳定。目前我这边sql查询时候通过argMax命令实现去重,不知道是否有更加合理的解决方案呢?

the version of clickhouse-jdbc in dolphinscheduler is 0.4.6 (I found it in the dir /opt/dolphinscheduler/libs/worker-server), I use this version jar to test the clickhouse remote function, and it work well...

fix, add SETTINGS max_result_rows=0 config after insert remote sql

查看hexo的源码,发现可以通过这样的途径解决: 找到这个文件:/node_modules/hexo/lib/hexo/render.js 修改其中的方法:isRenderable ,增加判断如果是baidu_verify(这个是百度认证文件文件名截取部分)认证文件,如果是的话,就不进行render Render.prototype.isRenderable = function(path) { if (path.indexOf("baidu_verify") >= 0) return false; return this.renderer.isRenderable(path); };