Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.5k 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...