Hi, does anyone deploy Flink app on AWS KDA? Im ha...
# troubleshooting
v
Hi, does anyone deploy Flink app on AWS KDA? Im having issue to reference
resource/application.properties
using
ParameterTool.fromPropertiesFile()
a
What issue are you having?
v
I got this exception on KDA environment
Copy code
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: file:/tmp/flink-web-9b0b65a7-da37-4eab-8324-0074510472cc/flink-web-upload/918043ba-2c73-4da7-a2da-926647a3b48d_code.jar!/application-staging.properties (No such file or directory)
When running this locally, the resource/application.properties file can be referenced correctly
v
Hi @Jeremy Ber thanks for your reply. It seems the only way to obtain properties is via kda runtime properties? We were using this but thinking to make use of ParameterTool.getProperties so there’s no special handling during local development.
j
For local development you can define a file as described in the link and access it via parameter tool or resources
But should have a switch for when you're not running locally
v
Right, thanks for the information 🙏