Scattered cents, in the previous article on the overall introduction of Elasticsearch, then this article we look at how to install, deploy ES, and how to install ES several more commonly used plug-ins.
ES installation and deployment, is very simple and convenient, at least this point between ES and SOLR, can be clearly reflected, SOLR installation is to rely on the servlet container, such as jetty, or Tomcat, after downloading, You need to copy SOLR's installation section into the Web container, then configure it to start the access, provide the retrieval service, and of course, SOLR is very easy to learn.
ES is currently the latest version is 1.4.2, the use of the version is 1.4.1, this version of ES are encapsulated based on the latest version of the Lucene4.10.2 based on, of course, Lucene and SOLR version is more closely, because they are released at the same time the new version.
Below to get to the chase:
(a) We need to go to the ES official website to download a new version of ES, and then extract to our Linux (the centos6.5 is here)
(ii) Enter the root directory of the extracted ES
Java code
- [Root@ph1 elasticsearch-1.4. 1]# pwd
- /root/elasticsearch-1.4. 1
- [Root@ph1 elasticsearch-1.4. 1]# ll
- Total dosage
- Drwxr-xr-x. 2 root root 4096 November :Wuyi bin
- Drwxr-xr-x. 2 root root 4096 November :wuyi config
- Drwxr-xr-x. 3 root root 4096 December 4 :data
- Drwxr-xr-x. 3 root root 4096 November :
- -rw-rw-r--. 1 root root 11358 November :wuyi LICENSE.txt
- Drwxr-xr-x. 2 root root 4096 December :logs
- -rw-rw-r--. 1 root root November :wuyi NOTICE.txt
- Drwxr-xr-x. 4 root root 4096 December :plugins
- -rw-rw-r--. 1 root root 8438 November :readme.textile
- [Root@ph1 elasticsearch-1.4. 1]#
Then execute, bin/elasticsearch command, launch our ES service, es boot, main two port number, 9200 (restful external port) and 9300 (external port of Java API), Then we can enter http://192.168.46.23:9200/in the browser on our windows, access our ES, and get the following information:
Java code
- {
- "status":
- "name": "Skin",
- " cluster_name": "Elasticsearch",
- "Version": {
- "Number ": "1.4.1",
- " Build_hash": "89d3241d670db65f994242c8e8383b169779e2d4",
- " build_timestamp": "2014-11-26t15:49:29z",
- "Build_snapshot": false,
- " lucene_version": "4.10.2 "
- },
- " tagline": "Know, for Search"
- }
Below, the two is almost es necessary plug-in, and very powerful:
1,head Plugin: You can view the index situation, search the index, view the cluster status and shard distribution, etc.
2,bigdesk plug-in: Can view the JVM information of the cluster, disk IO, index creation Delete information, etc., suitable to find system bottleneck, monitor cluster status, etc.
How they are installed:
First, offline installation, we can download the Tar package decompression method, download the address of the plugin click
Second, the online installation, directly under the root directory of Elasticsearch, respectively, enter:
Bin/plugin--install Mobz/elasticsearch-head Installation head
Bin/plugin--install Lukas-vlcek/bigdesk Installation Bigdesk
Once the installation is complete, we can individually access their corresponding HTTP addresses to verify that the installation was successful:
HTTP access address for head: http://192.168.46.23:9200/_plugin/head/
As follows:
Bigdesk HTTP access address: http://192.168.46.23:9200/_plugin/bigdesk/, as follows:
From the look to see, these two plug-ins are very useful, can help us better and faster, see the index, cluster, machine io,cpu, the load and usage of the disk. Learning how to use these two plugins is very helpful for our better clustering.
You are welcome to pay attention to the public number: I am an engineer (Woshigcs), more closely related to the siege division of content, here.
Two-dimensional code scanning:
Elasticsearch Introduction to Installation Deployment (ii)