Open newgene opened 3 years ago
cerebro was set up this way in the container:
WORKDIR /tmp
RUN curl -LO \
https://github.com/lmenezes/cerebro/releases/download/v${CEREBRO_VERSION}/cerebro-${CEREBRO_VERSION}.tgz \
&& tar xzf cerebro-${CEREBRO_VERSION}.tgz -C /usr/local \
&& ln -s /usr/local/cerebro-${CEREBRO_VERSION} /usr/local/cerebro \
&& rm -rf /tmp/cerebro*
I can verify that the solution mentioned in https://github.com/google/guice/issues/1133#issuecomment-434635902 (thanks to @erikyao) resolves the above error:
bundled_jvm=/usr/share/elasticsearch/jdk/ JAVA_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED" /usr/local/cerebro/bin/cerebro
Should this JVM option be part of cerebro
script?
I had to open another module/package
JAVA_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.net.www.protocol.file=ALL-UNNAMED"
Tried to install the latest cerebro v0.9.4 in a docker container, together with ES v7.13, but got this error when start cerebro (no default-jdk installed, tried to use the bundled JVM from ES v7.13):
Note that the bundled JVM is version 16. I saw
bin/cerebro
script checksbundled_jvm
variable, not sure if it is designed for using ES bundled JVM.Same error with the setting of
JAVA_HOME
as suggested in https://github.com/lmenezes/cerebro/issues/362.