Skip to content

Instantly share code, notes, and snippets.

@RishikeshDarandale
Last active January 25, 2024 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RishikeshDarandale/621a1982ec6c2cfb1aae33ebffac3981 to your computer and use it in GitHub Desktop.
Save RishikeshDarandale/621a1982ec6c2cfb1aae33ebffac3981 to your computer and use it in GitHub Desktop.
OpenSearch - setting on loacal

Install opensearch-dashboard

mkdir ~/devtools
  • Copy the file to ~/devtools
cp /mnt/c/Users/$USER/Downloads/opensearch-dashboards-2.11.1-linux-x64.tar.gz .
  • Extract the opensearch-dashboard tarball
tar -xvzf opensearch-dashboards-2.11.1-linux-x64.tar.gz .
  • Change directory to ~/devtools/opensearch-dashboards-2.11.1
cd ~/devtools/opensearch-dashboards-2.11.1
  • start the opensearch-dashboard
 ./bin/opensearch-dashboards

Install opensearch

mkdir ~/devtools
  • Copy the file to ~/devtools
cp /mnt/c/Users/$USER/Downloads/opensearch-2.11.1-linux-x64.tar.gz .
  • Extract the opensearch tarball
tar -xvzf opensearch-2.11.1-linux-x64.tar.gz .
  • change directory security plugin
cd ~/devtools/opensearch-2.11.1/plugins/opensearch-security/tools
  • Install the self sign certificates
./install_demo_configuration.sh
  • Select the options as below
OpenSearch Security Demo Installer
 ** Warning: Do not use on production or public reachable systems **
Install demo certificates? [y/N] y
Initialize Security Modules? [y/N] y
Cluster mode requires maybe additional setup of:
  - Virtual memory (vm.max_map_count)

Enable cluster mode? [y/N] N
  • Change directory to ~/devtools/opensearch-2.11.1
cd ~/devtools/opensearch-2.11.1
  • start the opensearch
./bin/opensearch
  • Check the cluster
curl --insecure -u admin:admin https://localhost:9200/
{
  "name" : "SHI58495EU1DF77",
  "cluster_name" : "opensearch",
  "cluster_uuid" : "Ke7R_7hKRDiPyvF0Qn462g",
  "version" : {
    "distribution" : "opensearch",
    "number" : "2.11.1",
    "build_type" : "tar",
    "build_hash" : "6b1986e964d440be9137eba1413015c31c5a7752",
    "build_date" : "2023-11-29T21:43:10.135035992Z",
    "build_snapshot" : false,
    "lucene_version" : "9.7.0",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment