Re: Flink Accumulators don't show in Flink history server

2025-05-02 Thread Lu Niu
Hi, after some investigation, here is the final findings: 1. The job accumulator, which represents 1 value accumulated across all tasks, does show up in the job history file. lniu@foo:~$ jq . d9830732259de77a04958f4f8ac40a76 | grep user-task-accumulators "json": "{\"job-accumulators\":[],\"

Re: Flink Accumulators don't show in Flink history server

2025-04-29 Thread archzi lu
Hi Lu Niu, Your scenario must be same with me. I'm so glad to share my solution with you. 1. use the operator state for save the custom statistics data, 2. save the data to external storage when the operator is closing. 3. query from external storage, and make some reduce operation with the data

Re: Flink Accumulators don't show in Flink history server

2025-04-28 Thread Lu Niu
Thanks Jiadong! Could you elaborate more? I use application mode to run job in yarn, and the yarn application will shutdown right after the flink batch job completed Best Lu On Mon, Apr 28, 2025 at 6:49 PM archzi lu wrote: > hi, Lu Niu > > As a workaround, you could use the following ways to

Re: Flink Accumulators don't show in Flink history server

2025-04-28 Thread archzi lu
hi, Lu Niu As a workaround, you could use the following ways to get the custom accumulator you defined. 1. RestCluserClient#getAccumulators method 2. /jobs/:jobid/accumulators Rest API Best. Jiadong Lu Lu Niu 于2025年4月29日周二 00:41写道: > > I am currently running a Flink job in batch mode and usin