Dear community,
I am having a problem releasing the job. 2019-01-22 10:42:50.098 WARN [Source: Custom Source -> Kafka -> ConstructTxSepa -> FilterOutFailures -> ObtainActualTxSepa -> TxSepaStream -> TxStream -> IndicatorsEvalStream -> TxEvalStream -> Sink: Print to Std. Out (2/4)] [FileCache] - improper use of releaseJob() without a matching number of createTmpFiles() calls for jobId 9e1557723a065925e01c7749899547fb I searched online but only found this: https://stackoverflow.com/questions/52135604/fix-improper-use-of-releasejob-without-a-matching-number-of-createtmpfiles However, this warnings are keeping popping up and the job cannot be released so that my data flow is not working. But if I remove my last operator, it will work just fine. But my last operator is justing doing some map operation. I am wondering what could be the cause of this issue? Many Thanks :)
Best regards/祝好, Chang Liu 刘畅 |
Ok, I think I found where is the issue, but I don’t understand why.
I have a method:
And this is how I am using it:
The problem is caused by the scenarios, which is passed as an argument of the method evaluationStream. But is is not working. It will work if I do it in the following way:
where the scenarios is not passed as a method argument but is a static object variable. But this is not what I want, I would like to have a configurable scenarios which I can load from config file instead of a static object variable. Any idea why this is happening? I also have other codes where I am also passing arguments and use them as part of my data flow and they are just working fine. Many Thanks. Best regards/祝好, Chang Liu 刘畅
|
I have tried another way, it is not working as well:
Best regards/祝好, Chang Liu 刘畅
|
Hi,
Which version of Flink are you using? This issue https://issues.apache.org/jira/browse/FLINK-10283 shows that a similar problem was fixed in 1.6.1 and 1.7. If you use a newer version and still encounter the problem, you can reopen the issue and describe how this is still a problem for you. Best, Stefan
|
Hi Stefan,
Thanks. I am using 1.6.0. I will upgrade to 1.6.1 and see whether the problem remains.
Best regards/祝好, Chang Liu 刘畅
|
Hi Stefan,
I have upgraded to 1.6.1. I saw the warnings are gone but my issue remains: the scenarios: Set[Scenario] cannot be passed as a method argument in order to be used in the map function. But it is working if I just directly use the object variable scenarios: Set[Scenario] instead of passing it as a method argument. Does it have anything to do with the class Scenario? Many Thanks. Best regards/祝好, Chang Liu 刘畅
|
Free forum by Nabble | Edit this page |