$ uname -a
3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
I installed Java like to /opt/jdk/jdk1.8.0_91
Then installed elastic:
Imported key
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
Added repo
echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
Installed
apt-get install elasticsearch
config:
All I changed in the config was to edit /etc/elasticsearch/elasticsearch.yml and specify:
network.host localhost
Then
sudo /bin/systemctl daemon-reload
sudo systemctl start elasticsearch
This is what I see:
sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled)
Active: failed (Result: exit-code) since Sat 2016-06-11 23:05:19 EDT; 3s ago
Docs: http://www.elastic.co
Process: 5526 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.pidfile=${PID_DIR}/elasticsearch.pid -Des.default.path.home=${ES_HOME} -Des.default.path.logs=${LOG_DIR} -Des.default.path.data=${DATA_DIR} -Des.default.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
Process: 5523 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 5526 (code=exited, status=1/FAILURE)
Jun 11 23:05:19 Rick elasticsearch[5526]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
Jun 11 23:05:19 Rick elasticsearch[5526]: at <<<guice>>>
Jun 11 23:05:19 Rick elasticsearch[5526]: at org.elasticsearch.node.Node.<init>(Node.java:213)
Jun 11 23:05:19 Rick elasticsearch[5526]: at org.elasticsearch.node.Node.<init>(Node.java:140)
Jun 11 23:05:19 Rick elasticsearch[5526]: at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
Jun 11 23:05:19 Rick elasticsearch[5526]: at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
Jun 11 23:05:19 Rick elasticsearch[5526]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
Jun 11 23:05:19 Rick elasticsearch[5526]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Jun 11 23:05:19 Rick systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Jun 11 23:05:19 Rick systemd[1]: Unit elasticsearch.service entered failed state.
No logs in /var/logs/elasticsearch
Running the program directly I see this:
sudo -u elasticsearch /usr/share/elasticsearch/bin/elasticsearch -d -p /var/run/elasticsearch.pid --default.config=/etc/elasticsearch/elasticsearch.yml --default.path.home=/usr/share/elasticsearch --default.path.logs=/var/log/elasticsearch --default.path.data=/var/lib/elasticsearch --default.path.work=/tmp/elasticsearch --default.path.conf=/etc/elasticsearch
[2016-06-11 23:09:00,329][INFO ][bootstrap ] es.default.config is no longer supported. elasticsearch.yml must be placed in the config directory and cannot be renamed.
This is a fresh install of the latest elasticsearch. I never configured es.default.config nor can I find it or links to it in any elastic dirs.