Поиск Elasti c не работает в ubuntu 18.04 - PullRequest
0 голосов
/ 09 июля 2020
*I have installed the elasticsearch on my ubuntu 18.04 but when I start the service it is failing when I execute systemctl start elasticsearch
saying
elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
   
Active: failed (Result: exit-code) since Thu 2020-07-09 20:51:13 PKT; 4s ago
     Docs: http://www.elastic.co
  Process: 11651 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
 Main PID: 11651 (code=exited, status=1/FAILURE)
Jul 09 20:51:05 ubuntu systemd[1]: Starting Elasticsearch...
Jul 09 20:51:05 ubuntu elasticsearch[11651]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will
Jul 09 20:51:13 ubuntu systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 20:51:13 ubuntu systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Jul 09 20:51:13 ubuntu systemd[1]: Failed to start Elasticsearch.

/ ******************************************* ********************************************* * /

мой elasticsearch.yml включает следующие

# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 127.0.0.1
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
# discovery.seed_hosts: ["host-1"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
node.name: node-1
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.

Если кто-нибудь может мне помочь с этим. На моем P C.

установлена ​​версия openjdk "11.0.7"

1 Ответ

0 голосов
/ 10 июля 2020

Поскольку вы не предоставили полный журнал ошибок / исключений, я бы предложил самую простую установку tarball на ubuntu, следуя этому официальному руководству по установке и следуя this и this поток, если вы получаете ошибки запуска, упомянутые в этих потоках.

...