elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

executors follow old way of setting JVM heap

Open ror6ax opened this issue 8 years ago • 2 comments

I'm seeing the following

Error: encountered environment variables that are no longer supported Use jvm.options or ES_JAVA_OPTS to configure the JVM ES_HEAP_SIZE=192m: set -Xms192m and -Xmx192m in jvm.options or add "-Xms192m -Xmx192m" to ES_JAVA_OPTS

Despite my Marahon task does not have those:

"env": { "JAVA_OPTS":"-Xms128m -Xmx256m", "ES_JAVA_OPTS":"-Xms128m -Xmx256m" }

Scheduler runs ok, the error is only found on executor nodes.

I think that the problem is here https://github.com/mesos/elasticsearch/blob/8eb2497552c12f58ee022f9c4a8d34ed3f6dfce0/scheduler/src/main/java/org/apache/mesos/elasticsearch/scheduler/configuration/ExecutorEnvironmentalVariables.java#L21

Please advice.

ror6ax avatar Feb 16 '17 11:02 ror6ax

I ran into the same issue. It's only the executors that error out like this.

rstevens011 avatar Mar 20 '17 20:03 rstevens011

Same issue. Executors do not support the JAVA_OPTS environment variable but the framework will only launch if JAVA_OPTS is set. So basically this framework doesn't work.

chadleeshaw avatar May 09 '17 22:05 chadleeshaw