Re: passing additional jvm parameters to the configuration

Posted by Arvid Heise-3 on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/passing-additional-jvm-parameters-to-the-configuration-tp36200p36206.html

Hi Georg,

could you check if simply using -D is working as described here [1].

If not, could you please be more precise: do you want the parameter to be passed to the driver, the job manager, or the task managers?

[1] https://ci.apache.org/projects/flink/flink-docs-master/ops/cli.html#deployment-targets

On Wed, Jun 24, 2020 at 8:55 PM Georg Heiler <[hidden email]> wrote:
Hi,

how can I pass additional configuration parameters like spark`s extraJavaOptions to a flink job?


contains the details. But the gist is:
flink run --class com.github.geoheil.streamingreference.tweets.TweetsAnalysis \
"usecases/tweets/build/libs/tweets_${SCALA_VERSION}-${VERSION}-all.jar" \
-yD env.java.opts="-Dconfig.file='config/jobs/twitter-analysis.conf'"

is not passing the -Dconfig.file to the flink job!

Best,
Georg


--

Arvid Heise | Senior Java Developer


Follow us @VervericaData

--

Join Flink Forward - The Apache Flink Conference

Stream Processing | Event Driven | Real Time

--

Ververica GmbH | Invalidenstrasse 115, 10115 Berlin, Germany

--

Ververica GmbH
Registered at Amtsgericht Charlottenburg: HRB 158244 B
Managing Directors: Timothy Alexander Steinert, Yip Park Tung Jason, Ji (Toni) Cheng