Sign inSign up

prameswar/elasticsearch

By prameswar

•Updated about 10 years ago

elasticsearch installation using .deb package in ubuntu

Image
0

2.2K

prameswar/elasticsearch repository overview

⁠Elasticsearch

Elasticsearch is a full-text search and analytics engine. It is a high scalable search engine. Read elasticsearch Documentation⁠ for more information.

⁠Supported Tags

Elasticsearch Version:

⁠Installation

Pull docker image from Dockerhub⁠ using command

docker pull prameswar/elasticsearch

Above command will install latest version.

OR

You can install older version of elasticsearch using tag.

docker pull prameswar/elasticsearch:2.3

OR

You can clone repository and build elasticsearch Dockerfile in your system.

git clone https://github.com/prameswar/elasticsearch.git
cd 2.3
docker build .

⁠Use elasticsearch

list docker images

docker images

REPOSITORY                TAG                 IMAGE ID            CREATED             SIZE
prameswar/elasticsearch   latest              692d02c3b921        7 days ago          649.9 MB

Login docker image

docker run -d -ti --name elasticsearch 692d02c3b921
docker exec -ti elasticsearch /bin/bash

change /etc/elasticsearch/elasticsearch.yml for elasticsearch configuration

⁠Helpful commands

  • health check of cluster
 curl 'http://localhost:9200/_cat/health?v'
epoch      timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent 
1473099742 18:22:22  elasticsearch green           1         1      0   0    0    0        0             0                  -                100.0% 
  • List of nodes in cluster
curl 'http://localhost:9200/_cat/nodes?v'
host      ip        heap.percent ram.percent load node.role master name 
127.0.0.1 127.0.0.1            4          98 1.28 d         *      Isis 
  • create new index with name test
curl -XPUT 'http://localhost:9200/test?pretty'
{
  "acknowledged" : true
}
  • List indexes
curl 'http://localhost:9200/_cat/indices?v'
health status index pri rep docs.count docs.deleted store.size pri.store.size 
yellow open   test    5   1          0            0       650b           650b 
  • Delete index
 curl -XDELETE 'http://localhost:9200/test?pretty'
{
  "acknowledged" : true
}

⁠References

Tag summary

Content type

Image

Digest

Size

288.5 MB

Last updated

about 10 years ago

docker pull prameswar/elasticsearch