I'm running a Flink SQL statement that inserts to ...
# troubleshooting
r
I'm running a Flink SQL statement that inserts to an iceberg table from a Kafka topic. Records are being written to disk so it's definitely working - but I see zero change on the bytes/records metrics in the job - is that expected? is there a way to see any data here?
j
You are disabling the chain between the writer and the commiter.. Try to disable between source and writer.. the writer dont emit records so you wont have metrics for emitted..
r
thanks for the answer! I'm still new to Flink - can you explain how I'd do this in Flink SQL?
d
You could set
pipeline.operator-chaining.enabled
to false to globally disable chaining.
r
Copy code
Flink SQL> SET 'pipeline.operator-chaining.enabled' = 'false';
[INFO] Execute statement succeed.
This worked, thanks @Joao Boto @David Anderson!
do you have a good doc ref I could go read to understand more about chaining and operators?
d
See the section on Task Chaining in Chapter 3 (The Architecture of Apache Flink) of Stream Processing with Apache Flink by Hueske and Kalavri from O'Reilly. Or https://nightlies.apache.org/flink/flink-docs-stable/docs/dev/datastream/operators/overview/#task-chaining-and-resource-groups, but the docs don't provide as much info as the Flink book. (Two short sentences in the docs, one full page in the book. There's not a lot to know.)
For learning about operators,

https://www.youtube.com/watch?v=WhaVG3kKj2E▾

is a good intro.
r
thanks @David Anderson