storm-docker icon indicating copy to clipboard operation
storm-docker copied to clipboard

Supervisor container fails with Java 11

Open jniocheCF opened this issue 3 years ago • 0 comments

The commit 9eae4ab08d30cfab29c784b4d9e7d1c187fa0348 changed the version of Java to 11, however by default Storm specifies a deprecated JVM option

2021-12-09 14:38:58.264 STDERR Thread-0 [INFO] Unrecognized VM option 'PrintGCDateStamps'
2021-12-09 14:38:58.264 STDERR Thread-1 [INFO] [0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:artifacts/gc.log instead.
2021-12-09 14:38:58.269 STDERR Thread-0 [INFO] Error: Could not create the Java Virtual Machine.
2021-12-09 14:38:58.269 STDERR Thread-0 [INFO] Error: A fatal exception has occurred. Program will exit.

You should either revert the commit above and go back to Java 8 or remove the option from the configuration. This can be done by overriding the value of worker.childopts when calling Storm.

storm supervisor -c worker.childopts=-Xmx%HEAP-MEM%m

jniocheCF avatar Dec 16 '21 09:12 jniocheCF