Yes, this is what I’m suggesting. I think you could clear the path when the operator/function shuts down, i.e. in the close() method.
> On 15. Jun 2017, at 14:25, yunfan123 <yunfanfight...@foxmail.com> wrote: > > So your suggestion is I create an archive of all the file in the resources. > Then I get the distributed cache of this file and extracted it to a path. > Use this path as my resource path? > But in which time I should clear the temp path? > > > > -- > View this message in context: > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/User-self-resource-file-tp13693p13765.html > Sent from the Apache Flink User Mailing List archive. mailing list archive at > Nabble.com.