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

Re: Run simple flink application via "java -jar"

Hi Krishna,

yes this should work given that you included all dependencies that are marked as "provided" in a Flink example project. In general, when you develop a Flink application, you can can simply press the run button in your IDE. This will start a mini cluster locally for debugging purposes.

However, if your goal is just to run Flink as a standalone application. You can stil use `./start-cluster.sh` and `/flink run`. By default the start cluster script starts a single task manager with one slot for a standalone mode.


Am 06.12.18 um 14:36 schrieb Krishna Kalyan:

This is a very n00b question. Can we run a flink job (for example wordcount) using "java -jar <jar_file_name>" in standalone mode. I usually see examples using   "$FLINK_HOME/bin/flink run  <jar_file_name>". If yes can someone please point me to an example.


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.