Elasticsearch Version Upgrade Memo (1.5.2 to 2.3.1)

Source: Internet
Author: User

    1. The discovery mechanism is unicast by default and needs to be configured with discovery.zen.ping.unicast.hosts: If each node uses the default port, only the IP (["172.17.4.47", "172.17.4.48", ' 172.17.4.49 ']), if the default port is not used, configure the ip+ port (["172.17.4.47:9301", "172.17.4.48:9301", ' 172.17.4.49:9301 ')
    2. RESTAPI does not support dropping indexes, closing indexes, and cannot do this in head, if you want to remove the Use Curl command (Curl-xdelete http://172.17.4.47:9200/indexname)
      Add Configuration entry: Http.cors.allow-origin: "*" to support API-based control functions in head plug-ins, such as deleting indexes, deleting aliases, adding aliases, etc.
    3. Service-wapper can not be used, according to the official website method, enter the Elasticsearch bin directory, execute "./elasticsearch-d" command background start es, need to stop, first find the process ID of es (ps-ef | grep elasticsearch), then kill
    4. Users who cannot start ES with root privileges need to create a new normal user (Esrun,useradd), set a password (passwd), and then assign the ES directory permissions to the new user (Chown-r esrun:esrun/home/ elasticsearch2.3.1), and then start es (su esrun) as Esrun
    5. IK installation: Download the source code (Zip package) from GitHub, unzip it, go to the directory, execute the MVN package, and then target\releases\ Elasticsearch-analysis-ik-1.9.1.zip extract to Directory IK, then copy the IK directory to es under plugin
    6. IK configuration: The type configuration is adjusted by Type:org.elasticsearch.index.analysis.IkAnalyzerProvider to Type:ik, example:
    7. IK configuration: IK's Thesaurus and config file directory, adjusted from config to plugin/ik/
    8. Gateway Configuration: Remove Gateway.type:local
    9. JVM Head Memory settings:
      Bin/elasticsearch.in.sh (high priority, subject to this configuration):

      Bin/service.bat (prevention mechanism):
    10. need to add configuration: http.cors.enabled:true, support batch CREATE index
    11. shutdown JSONP, security mechanism, do not configure: http.jsonp.enable:true

Elasticsearch Version Upgrade Memo (1.5.2 to 2.3.1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.