Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.8k views
in Technique[技术] by (71.8m points)

How to configure java home on flink job on yarn

I submit a job to the hadoop cluster on the flink client, do I need to configure the java home path in flink conf?

If you need to configure,

Should I configure the java home of the client machine or the java home of the hadoop cluster?

When I did not configure java home, I submitted the job error as follows

LogType:jobmanager.err
Log Upload Time:Fri Jan 22 17:27:25 -0800 2021
LogLength:160
Log Contents:
Unrecognized VM option 'MaxMetaspaceSize=268435456'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

According the output you posted, you problem is not java_path (yet!) The line

Unrecognized VM option 'MaxMetaspaceSize=268435456'

You need to remove MaxMetaspaceSize from configuration or replace it with: -XX:MaxMetaspaceSize

you can get help from this issue.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...