2

I was following the installation manual for presto.

But when I lanched the presto server from the command line I got this error:

$ bin/launcher run

Unrecognized VM option 'ExitOnOutOfMemoryError'
Did you mean 'OnOutOfMemoryError=<value>'?
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
David Wickstrom
  • 5,048
  • 1
  • 19
  • 14

2 Answers2

2

Per @kavehmb's answer on another question, as of June 2019 the way to work around this issue is:

brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
Zack
  • 1,256
  • 9
  • 20
0

I suspected the java version was wrong and checked it. I had Java 1.8.0_65-b17.

The documentation for the installation did not mention anything about needed java version. It was hard to find out the needed Java version for the newest Presto version (v0.208)

I updated to the currently newest Java8 version using brew (on Mac).

brew cask install java8

After successful upgrading of Java I had version 1.8.0_181-b13.

Then prestodb could start.

David Wickstrom
  • 5,048
  • 1
  • 19
  • 14