HavAnIdea opened a new issue, #6321:
URL: https://github.com/apache/iceberg/issues/6321
### Query engine
flink
### Question
I used flink API to write data
By flink local mode, the speed is more than 20000 record/s
but i change to flink perjob mode, the speed is under 50 record/s
Same code, only changed submit mode
Code like :
SingleOutputStreamOperator<RowData> map = source.filter(new
RichFilterFunction<Record>() {
@Override
public boolean filter(Record value) throws Exception {
return filterRecord(value);
}
}).map(new RichMapFunction<Record, RowData>() {
@Override
public RowData map(Record value) throws Exception {
return mappingAndConvert(value);
}
});
FlinkSink.Builder sinkBuilder = FlinkSink.forRowData(map)
.table(table)
.tableLoader(TableLoader.fromHadoopTable(tableLocation,
getHadoopConf(icebergConfig)))
.writeParallelism(parallelism+10)
.equalityFieldColumns(equalityFiledColumns)
.overwrite(overwrite);
if (Objects.nonNull(writeFileSize) && writeFileSize > 0) {
sinkBuilder.set("target-file-size-bytes",
String.valueOf(writeFileSize));
}
sinkBuilder.append();
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]