[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing application configuring to Flink uber jar

Hello All,

I have a Flink application that inherits configuration from application.conf in the resources folder. 

Now, I want to run this application on a cluster. I begin creating an fat jar "mvn clean assembly". 

This jar file is executed by executing the following command below
$FLINK_HOME/bin/flink run --class "com.test...." -D "env.java.opts=-Dconfig.file=dev.conf" /opt/resources/iot-flink-assembly-0.1.0.jar

This causes and error that the configuration key was not found. I could someone please let me know how to pass custom application.conf environment file to cluster. I could not find a lot of information online on how to do this.




Krishna Kalyan

M +49 151 44159906

Standorte in Stuttgart und Berlin · Zoi TechCon GmbH · Quellenstr. 7 · 70376 Stuttgart · Geschäftsführer: Benjamin Hermann, Dr. Daniel Heubach. Amtsgericht Stuttgart HRB 759619, Gerichtsstand Stuttgart. Die genannten Angaben werden automatisch hinzugefügt und lassen keine Rückschlüsse auf den Rechtscharakter der E-Mail zu. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.