From 9b2f31be4096a39dec936143b61d9d9688d64df6 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 13 Jul 2022 17:32:00 -0700 Subject: [PATCH] Simplify azure discovery installation docs (#88404) The installation docs for azure discovery suggest installing Elasticsearch, and then verifying it is running. However, installation packages do not generally automatically start an installed service. For example, with systemd, once a package is installed it must be enabled and/or started explicitly. This commit removes wording about verifying Elasticsearch is running, as well as adjusts later docs about restarting it. --- docs/plugins/discovery-azure-classic.asciidoc | 46 +------------------ 1 file changed, 2 insertions(+), 44 deletions(-) diff --git a/docs/plugins/discovery-azure-classic.asciidoc b/docs/plugins/discovery-azure-classic.asciidoc index e1dcaf0c2d61a..d611415bcb36d 100644 --- a/docs/plugins/discovery-azure-classic.asciidoc +++ b/docs/plugins/discovery-azure-classic.asciidoc @@ -333,53 +333,11 @@ ssh azure-elasticsearch-cluster.cloudapp.net Once connected, {ref}/install-elasticsearch.html[install {es}]. -Check that Elasticsearch is running: - -[source,console] ----- -GET / ----- - -This command should give you a JSON result: - -["source","js",subs="attributes,callouts"] --------------------------------------------- -{ - "name" : "Cp8oag6", - "cluster_name" : "elasticsearch", - "cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA", - "version" : { - "number" : "{version_qualified}", - "build_type" : "{build_type}", - "build_hash" : "f27399d", - "build_flavor": "default", - "build_date" : "2016-03-30T09:51:41.449Z", - "build_snapshot" : false, - "lucene_version" : "{lucene_version}", - "minimum_wire_compatibility_version" : "1.2.3", - "minimum_index_compatibility_version" : "1.2.3" - }, - "tagline" : "You Know, for Search" -} --------------------------------------------- -// TESTRESPONSE[s/"name" : "Cp8oag6",/"name" : "$body.name",/] -// TESTRESPONSE[s/"cluster_name" : "elasticsearch",/"cluster_name" : "$body.cluster_name",/] -// TESTRESPONSE[s/"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",/"cluster_uuid" : "$body.cluster_uuid",/] -// TESTRESPONSE[s/"build_hash" : "f27399d",/"build_hash" : "$body.version.build_hash",/] -// TESTRESPONSE[s/"build_date" : "2016-03-30T09:51:41.449Z",/"build_date" : $body.version.build_date,/] -// TESTRESPONSE[s/"build_snapshot" : false,/"build_snapshot" : $body.version.build_snapshot,/] -// TESTRESPONSE[s/"minimum_wire_compatibility_version" : "1.2.3"/"minimum_wire_compatibility_version" : $body.version.minimum_wire_compatibility_version/] -// TESTRESPONSE[s/"minimum_index_compatibility_version" : "1.2.3"/"minimum_index_compatibility_version" : $body.version.minimum_index_compatibility_version/] -// So much s/// but at least we test that the layout is close to matching.... - [[discovery-azure-classic-long-plugin]] ===== Install Elasticsearch cloud azure plugin [source,sh] ---- -# Stop Elasticsearch -sudo service elasticsearch stop - # Install the plugin sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install discovery-azure-classic @@ -408,11 +366,11 @@ discovery: # path.data: /mnt/resource/elasticsearch/data ---- -Restart Elasticsearch: +Start Elasticsearch: [source,sh] ---- -sudo service elasticsearch start +sudo systemctl start elasticsearch ---- If anything goes wrong, check your logs in `/var/log/elasticsearch`.