Brian Koehler
03/13/2024, 7:43 PMERROR message itself is this:
"applicationARN": "arn:aws:kinesisanalytics:us-west-2:####:application/my-flink-app",
"applicationVersionId": "1",
"locationInformation": "org.apache.flink.runtime.rest.handler.AbstractHandler.handleException(AbstractHandler.java:249)",
"logger": "org.apache.flink.runtime.rest.handler.job.JobDetailsHandler",
"message": "Exception occurred in REST handler.",
"messageSchemaVersion": "1",
"messageType": "ERROR",
"threadName": "flink-akka.actor.default-dispatcher-19",
"throwableInformation": "org.apache.flink.runtime.rest.NotFoundException: Job ####### not found
By turning on DEBUG, I am then able to see the following message:
"applicationARN": "arn:aws:kinesisanalytics:us-west-2:####:application/my-flink-app",
"applicationVersionId": "1",
"locationInformation": "org.apache.flink.runtime.dispatcher.FileExecutionGraphInfoStore.get(FileExecutionGraphInfoStore.java:153)",
"logger": "org.apache.flink.runtime.dispatcher.FileExecutionGraphInfoStore",
"message": "Could not load archived execution graph information for job id #######.",
"messageSchemaVersion": "1",
"messageType": "DEBUG",
"threadName": "flink-akka.actor.default-dispatcher-18",
"throwableInformation": "java.util.concurrent.ExecutionException: java.io.FileNotFoundException: Could not find file for archived execution graph #######. This indicates that the file either has been deleted or never written.
Finally, the application sends the following generic error message:
"applicationARN": "arn:aws:kinesisanalytics:us-west-2:####:application/my-flink-app",
"applicationVersionId": 1,
"message": "Flink job did not start within a total timeout of 5 minutes for application: my-flink-app under account: ####",
"messageType": "ERROR",
"messageSchemaVersion": "1",
"errorCode": "CodeError.InvalidApplicationCode"
}
The last error just means it couldn't start. We have the exact same code and configuration running properly in 3 other environments. Barring differences in this new environment, does anyone know what would cause the graph execution error in the first place? There's next to nothing online about it so just hoping to get pointed in the right direction.
Thanks!Aleksandr Pilipenko
03/13/2024, 7:50 PMNotFoundException: Job ####### not found error is likely because job is not yet started and checks from outside can’t get info from Flink API.Aleksandr Pilipenko
03/13/2024, 7:51 PMBrian Koehler
03/13/2024, 7:58 PMNotFoundException: Job ####### not found piece, that does make sense. Initialization is just creating our input tables: one for a kafka topic (via kafka connector for Table API), one for aurora db (via JDBC connector for Table API).
If you're suggesting that there is something from preventing the application from starting up, that makes sense. My the logs only mention java.io.FileNotFoundException: Could not find file for archived execution graph #######. This indicates that the file either has been deleted or never written. But I suspect there's probably something else causing this?Aleksandr Pilipenko
03/13/2024, 8:05 PMFileNotFoundException error is logged as DEBUG I would assume that this has same reason as job not found.
From info here it hard to say what may prevent job from starting.Brian Koehler
03/13/2024, 8:07 PMBrian Koehler
03/13/2024, 8:10 PMAleksandr Pilipenko
03/13/2024, 8:15 PMBrian Koehler
03/14/2024, 8:03 PM