zoukankan      html  css  js  c++  java
  • ElasticSearch安装部署

    官网:http://www.elasticsearch.org

    ElasticSearch is an open-source and distributed search engine which is very much scalable and supports a good amount of enterprise Search use cases. It's built on top of Lucene (just like Apache Solr4). It supports realtime time indexing and full text search.

    下载压缩包,Run bin/elasticsearch on Unix,

    or bin/elasticsearch.bat on Windows

    root@iZ23onhpqvwZ:~/download/elasticsearch-1.4.0/bin# ./elasticsearch
    [2014-11-13 10:30:09,969][WARN ][bootstrap                ] jvm uses the client vm, make sure to run `java` with the server vm for best performance by adding `-server` to the command line
    [2014-11-13 10:30:10,074][INFO ][node                     ] [Thin Man] version[1.4.0], pid[6192], build[bc94bd8/2014-11-05T14:26:12Z]
    [2014-11-13 10:30:10,074][INFO ][node                     ] [Thin Man] initializing ...
    [2014-11-13 10:30:10,080][INFO ][plugins                  ] [Thin Man] loaded [], sites []
    Java HotSpot(TM) Client VM warning: You have loaded library /root/download/elasticsearch-1.4.0/lib/sigar/libsigar-x86-linux.so which might have disabled stack guard. The VM will try to fix the stack guard now.
    It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
    [2014-11-13 10:30:12,997][INFO ][node                     ] [Thin Man] initialized
    [2014-11-13 10:30:12,997][INFO ][node                     ] [Thin Man] starting ...
    [2014-11-13 10:30:13,096][INFO ][transport                ] [Thin Man] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.168.75.170:9300]}
    [2014-11-13 10:30:13,129][INFO ][discovery                ] [Thin Man] elasticsearch/r5aQ91yDTOSr3I1FI8_Piw
    [2014-11-13 10:30:16,908][INFO ][cluster.service          ] [Thin Man] new_master [Thin Man][r5aQ91yDTOSr3I1FI8_Piw][iZ23onhpqvwZ][inet[/10.168.75.170:9300]], reason: zen-disco-join (elected_as_master)
    [2014-11-13 10:30:16,946][INFO ][http                     ] [Thin Man] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/10.168.75.170:9200]}
    [2014-11-13 10:30:16,946][INFO ][node                     ] [Thin Man] started
    [2014-11-13 10:30:16,961][INFO ][gateway                  ] [Thin Man] recovered [0] indices into cluster_state

    我的没有这个信息显示:

    [INFO ][node                     ] [Lorna Dane] started

    如果想后台运行,则执行

    ./elasticsearch -d

    想确认程序是否运行,则运行

    lsof -i:9200
    lsof -i:9300
    一个是节点对外服务端口,一个是节点间交互端口(如果有集群的话)。


    Run curl -X GET http://localhost:9200/

    -X 指定协议,get ,post,delete等。

    输出类似

    {
      "name" : "Scarlet Spider",
      "cluster_name" : "elasticsearch",
      "version" : {
        "number" : "2.2.0",
        "build_hash" : "8ff36d139e16f8720f2947ef62c8167a888992fe",
        "build_timestamp" : "2016-01-27T13:32:39Z",
        "build_snapshot" : false,
        "lucene_version" : "5.4.1"
      },
      "tagline" : "You Know, for Search"
    }

    http://my.oschina.net/qiangzigege/blog/220224

     

    参考:

    http://www.oschina.net/translate/elasticsearch-getting-started?cmp  

    Getting Started with ElasticSearch

    elasticsearch中文文档:

    http://blog.csdn.net/cnweike/article/details/33736429/

  • 相关阅读:
    dataframe字段过长被截断
    sublime text 3安装Anaconda插件之后写python出现白框
    在tkinter中使用matplotlib
    RemoteDisconnected: Remote end closed connection without response
    object of type 'Response' has no len()
    matploylib之热力图
    pycharm格式化python代码快捷键Ctrl+Alt+L失效
    Windows下Redis集群配置
    七牛云--对象存储
    Spring发送邮件
  • 原文地址:https://www.cnblogs.com/youxin/p/4094263.html
Copyright © 2011-2022 走看看