elasticsearch简述与单节点安装

         Elasticsearch 是一个分布式的 RESTful 风格的搜索和数据分析引擎,能够解决不断涌现出的各种用例。(官方的定义)。

其有以下特点:

1、查询:支持结构化与非结构化数据的快速查询,支持简单及复杂的查询;

2、分析:可根据需求对数据进行聚合,折分等操作,建立各类模式的分析策略;

3、速度:一定字,快,在查询方面TB级别的数量也是非常快的,PB级别需要看集群大小;

4、可扩展:对于这方面,可能很多大数据处理框架都具有这方面的特别;

5、灵活性:支持结构化与非结构化的数据,应用不同的应用场景。

下载地址:https://www.elastic.co/cn/products/elasticsearch

解压后的目标结构:

hadoop@work01:/opt/elasticsearch/elasticsearch-6.3.1$ ls -r
README.textile  plugins  NOTICE.txt  modules  logs  LICENSE.txt  lib  config  bin
构建时主要关注config、bin,config主要是配置文件的调整, bin主要是管理及启动的相关脚本。

注意:安装elasticsearch的用户不能使用root用户,否则启动时会报错,提示不能使用root用户。

扫描二维码关注公众号,回复: 2161174 查看本文章

安装完成后:

hadoop@work01:/opt/elasticsearch/elasticsearch-6.3.1/bin$ ss -lnp | grep 9200
tcp    LISTEN     0      128     ::ffff:127.0.0.1:9200                 :::*      users:(("java",5572,190))
tcp    LISTEN     0      128                  ::1:9200                 :::*      users:(("java",5572,189))
hadoop@work01:/opt/elasticsearch/elasticsearch-6.3.1/bin$  curl -X GET http://localhost:9200/ 
{
  "name" : "baqrmcY",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "xUKKz4nuTl-pDwbaXmkcgA",
  "version" : {
    "number" : "6.3.1",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "eb782d0",
    "build_date" : "2018-06-29T21:59:26.107521Z",
    "build_snapshot" : false,
    "lucene_version" : "7.3.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
此处我使用的是默认的端口9200。进行bin目录下,使用./elasticsearch -d以后台模式进行启动,启动后使用curl可查看状态。单节点的安装完毕。

猜你喜欢

转载自blog.csdn.net/goodstudy168/article/details/81051834