环境条件
java版本:1.8
Flink版本:1.14.6
Cygwin:2.294
问题现象
bin目录下使用如下命令启动本地集群,无报错,但访问不到Flink Web UI:
./start-cluster.sh
执行结果无报错:
Starting cluster.
Starting standalonesession daemon on host XXX.
Starting taskexecutor daemon on host XXX.
问题定位
查看对应log,发现存在报错内容:
Improperly specified VM option 'MaxMetaspaceSize=268435456
'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
查到FLINK-18792中提到该错误,需要注释bin目录下config.sh中parseResourceParamsAndExportLogs()的以下内容:
# export JVM_ARGS="${JVM_ARGS} ${jvm_params}"
之后可以正常访问http://localhost:8081