elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.55k stars 24.61k forks source link

ES 0.20.5/0.90.0.Beta1 only ever names node "Aardwolf" #2702

Closed dakrone closed 11 years ago

dakrone commented 11 years ago

On Linux, with Oracle's java:

∴ java -version
java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

Every time I start a foreground node, "Aardwolf" is chosen for the name.

dadoonet commented 11 years ago

I just tested it and got:

I can not reproduce it. Did you define any settings in elasticsearch.yml?

dakrone commented 11 years ago

Nope, no settings in elasticsearch.yml, vanilla ES 0.90.0.Beta1, no plugins installed.

dakrone commented 11 years ago

I tested this on a different node and the name changed, however, it's still stuck at "Aardwork" for my local machine.

dakrone commented 11 years ago

Also, now that I go back and test it, I see this same issue in 0.20.5 for my machine.

drewr commented 11 years ago

@imotov and I have seen this on early versions of OpenJDK. I just tested Oracle 7u10 and 7u15 on Linux and neither has the issue. So, is it possible your Java isn't installed right? After starting a node, check and make sure curl -s localhost:9200/_nodes\?all=1 | python -mjson.tool | fgrep vm_name is Oracle Corporation.

dakrone commented 11 years ago

Alright, looks like it was a case of having JAVA_HOME exported to a different directory than what was being run. Doing an unset JAVA_HOME fixes the issue.

Interesting though, this is a strange manifestation of this issue.

dakrone commented 11 years ago

Thanks for the debugging help, @drewr and @dadoonet