mesos / elasticsearch

Elasticsearch on Mesos
Apache License 2.0
242 stars 90 forks source link

executors follow old way of setting JVM heap #600

Open ror6ax opened 7 years ago

ror6ax commented 7 years ago

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.

rstevens011 commented 7 years ago

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

chadleeshaw commented 7 years ago

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.