You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/11/30 09:59:59 UTC

[GitHub] [iceberg] HavAnIdea opened a new issue, #6321: Iceberg write by flink perjob too slow!!!!!

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: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] github-actions[bot] commented on issue #6321: Iceberg write by flink perjob too slow!!!!!

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6321:
URL: https://github.com/apache/iceberg/issues/6321#issuecomment-1571130397

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] pvary commented on issue #6321: Iceberg write by flink perjob too slow!!!!!

Posted by GitBox <gi...@apache.org>.
pvary commented on issue #6321:
URL: https://github.com/apache/iceberg/issues/6321#issuecomment-1334882852

   @HavAnIdea: You might want to define `.returns(typeInfo)` for the `map` stream to have better serialization performance


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] github-actions[bot] closed issue #6321: Iceberg write by flink perjob too slow!!!!!

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #6321: Iceberg write by flink perjob too slow!!!!!
URL: https://github.com/apache/iceberg/issues/6321


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] luoyuxia commented on issue #6321: Iceberg write by flink perjob too slow!!!!!

Posted by GitBox <gi...@apache.org>.
luoyuxia commented on issue #6321:
URL: https://github.com/apache/iceberg/issues/6321#issuecomment-1332052635

   @HavAnIdea Is there any difference in the job graph between local mode and per job mode.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] github-actions[bot] commented on issue #6321: Iceberg write by flink perjob too slow!!!!!

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6321:
URL: https://github.com/apache/iceberg/issues/6321#issuecomment-1593872898

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org