Closed qiyuangong closed 3 years ago
Maybe could be reproduced by using same process, second time loading
I tried to reproduce this by
But both not reproduced successfully.
Seems when Flink task ends, some info are cleaned, but this is not cleaned in TF core management and causing repeated loading.
Maybe could be reproduced by using same process, second time loading
I tried to reproduce this by
- load TF and predict, load again and predict again.
- use a sub-thread to load and predict, stop the thread and start another same thread again.
But both not reproduced successfully.
Seems when Flink task ends, some info are cleaned, but this is not cleaned in TF core management and causing repeated loading.
Checked with @Litchilitchy on JDK-8 and JDK-11. Simple Java example can not re-product this error. Seems it is related to Flink's classloader design. https://blog.csdn.net/lijianqingfeng/article/details/107093632
Problem solved by putting jar into flink/lib. :) Issue closed
Need to update the document?
Need to update the document?
Yes. Will add to Cluster Serving trouble shooting.
Submitting Tensorflow inference jobs to same Flink taskmanager will encounter following error during loading tensorflow libs
First job loading log
Second job load, then failed