cygwin运行flink 1.14.4 解决报错Improperly specified VM option 'MaxMetaspaceSize
在windows下运行flink, 要求在cygwin环境下运行.
安装flink 1.14.4官方文档
运行./bin/start-cluster.sh后, 查看log/flink-Administrator-standalonesession-*.out文件, 显示如下错误
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Improperly specified VM option 'MaxMetaspaceSize=268435456
查到Issue FLINK-18438中提到编辑 <FLINK_DIR>/bin/taskmanager.sh, 注释export JVM_ARGS="${JVM_ARGS} ${jvm_params}该行.
但在1.14.4中未能找到该行代码.
检查config.sh文件, 发现在parseResourceParamsAndExportLogs()中有此行代码, 改为# export JVM_ARGS="${JVM_ARGS} ${jvm_params}"后, 再执行./bin/start-cluster.sh, out文件报错消失, 能在localhost:8081打开页面.

1790

被折叠的 条评论
为什么被折叠?



