Comments (3)
Sorry, not support for now, you can read data by partition or limit the number of reads.
In batch mode, seems all data will be read at once, is there any way to read data in multiple batches in one source instance?
from flink-connector-clickhouse.
Sorry, not support for now, you can read data by partition or limit the number of reads. In batch mode, seems all data will be read at once, is there any way to read data in multiple batches in one source instance?
Thank you for your reply.
But my job is in streaming mode, and the source DDL looks like this:
tableEnv.executeSql(
"""
|CREATE TABLE stock_tbl (
| `id` string,
| `stock_id` string,
| `display_type` int,
| `display_name` string,
| `data_type` int,
| `compare_type` int,
| `value` double,
| `data_source_id` string,
| `date_range_begin` string,
| `date_range_end` string
|) WITH (
| 'connector' = 'clickhouse',
| 'url' = 'clickhouse://xxx:8123',
| 'username' = 'xxx',
| 'password' = 'xxx',
| 'database-name' = 'xxx',
| 'table-name' = 'xxx',
| 'scan.partition.column' = 'xxx',
| 'scan.partition.num' = '4',
| 'scan.partition.lower-bound' = '1',
| 'scan.partition.upper-bound' = '4'
|)
|""".stripMargin)
The clickhouse table has 130 million records, how can I limit the number of reads? I didn't see the relevant options in your examples
from flink-connector-clickhouse.
- I mean
select * from table limit n
, but this does not meet your needs. scan.partition.*
can help to read data in parallel, each subtask reads a part of the whole table data.- In streaming mode, data is consumed one by one and sent downstream, it shouldn't cause out of memory, I did a test, in streaming mode, read ClickHouse and write MySQL:
About your problem:
You can use config pipeline.operator-chaining = false
to disable chaining job operators, this can help to locate the problem.
from flink-connector-clickhouse.
Related Issues (20)
- 最新的1.71需要jdk11吗?用jdk8报错了 HOT 1
- flink-connector-clickhouse里面的sink怎么使用?有例子吗? HOT 2
- java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.Number HOT 7
- I cannot use OPTION 'properties.*'. HOT 4
- Execution default of goal io.github.zentol.japicmp:japicmp-maven-plugin:0.16.0_m325:cmp failed: version can neither be null, empty nor blank HOT 2
- Add Apache Listen to File hard
- sink exception e.flink.connector.clickhouse.internal.ClickHouseBatchOutputFormat HOT 3
- how to pack a fat jar HOT 1
- 有人编译成功么,可以分享下么 HOT 1
- 使用flink 版本是1.19 flink cdc 时报错了,应该是序列化的问题 Caused by: java.lang.ClassNotFoundException: org.apache.flink.connector.clickhouse.internal.ClickHouseBatchOutputFormat HOT 4
- Support URLs with query params HOT 3
- Add issues And pull template to project
- [Bug]: Unit test error cause CI building failure
- [Bug]: not set Clickhouse userName and password have npe
- [Bug]: UInt Type Not Supprot to Read Or Write HOT 1
- [Feature]: Add Flink Clickhouse QuickStart For Read Or Write Data
- [Feature]: Support Unit5 Test For Clickhouse Connector
- flink1.17.2 clickhouse catalog集成kafka 报错:创建kafka表时报错 HOT 2
- [Bug]: 经常出现刷新异常 HOT 4
- [Enhance]: Ensure Consistency of Database and Parameters in Newly Created ClickHouse JDBC Connections HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flink-connector-clickhouse.