node name " Es-node1"# set up a custom port for communication between nodes (default is 9300) # Set the custom side to listen for HTTP transmissions (default is 9200)http.port:9200 Elasticsearch configuration file description See: http://blog.csdn.net/an74520/article/details/101756033. Install the head plugin# Enter the node bin path [[email protected] bin] # pwd/export/search/elasticsearch-cluster/elasticsearch-node1/bin installa
SpringBoot integrates Elasticsearch and implements CRUD operations.
Configuration preparation
Add the following dependency to the build. gradle file:
Compile "org. elasticsearch. client: transport: 5.5.2 "compile" org. elasticsearch: 5.5.2 "// es 5. the apache log4 log compile "org. apache. logging. log4j: log4j-core: 2.7 "compile" org. apache. logging. log4j: log4j-api: 2.7"
Spring boot uses version 1.5.4. The official version of spring boot 2 was released the last day. One of the new features
[From] Http://www.tuicool.com/articles/JBvQrmjThis article explains how to use ElasticSearch to achieve full-text search based on spring boot.Version notesThe version of Spring data ElasticSearch needs to match the spring boot, elasticSearch version.
Spring Boot Version (x)
Spring Data Elasticsearch Version (y)
Elasticsearch Version (z)
X
Y
Z
X >= 1.4.x
2.0.0
2.0.0
Environmental dependencyModify t
actual class loader), which means that two local servers are in the same JVM, forming a cluster.
Import Static org . Elasticsearch . node . Nodebuilder .*; //on Startupnode node = Nodebuilder (). local (true). Node (); Client client = Node.client ();//on Shutdownnode.close ();
Transport Client
Transportclient uses transport module to connect elasticsearch cluster remotely, it does not increase the cluster, but only has one or more initial transport addresses and communicates with the
/dashboard/index-plugins/discover/index-plugins/doc/index-plugins/kibana/index-plugins/markdow N_vis/index-plugins/metric_vis/index-plugins/settings/index-plugins/table_vis/index-plugins/vis_types/index-
Plugins/visualize/index
Okay, let's write a docker-compose.yml for easy construction.
Ports, and so on, you can modify the path of the configuration file according to your own requirements. The overall system configuration requirements are higher please select the machine with better conf
configuration problem Solution: Check the configuration files in Elasticsearch VI config/elasticsearch.yml find the following configuration:discovery.zen.ping.unicast.hosts:["192.168.**.**:9300", "192.168.**.**:9300"] in general, there is a problem with the configuration here, note the writing formatQuestion six: org.elasticsearch.transport.RemoteTransportException:Failed to deserialize exception response
Http://www.cnblogs.com/Onlywjy/p/Elasticsearch.html
Elasticsearch6.0 and head plug-in installation
1. Download and unzip Elasticsearch
2. Modify the Elasticsearch.yml file
# Cluster Name
cluster.name:my-application
# node name
node.name:node-1
# Data store directory (multiple paths separated by commas)
Path.data:/ Home/wjy/es/data
# Log directory
path.logs:/home/wjy/es/logs
#本机的ip地址
network.host:192.168.161.128
#设置集群中master节点的初始列表, these nodes can be used to automatically discov
We have started elasticsearch in the previous article, and then we can communicate with elasticsearch, such as inserting data, retrieving data, deleting data, and so on. Elasticsearch provides two ways to communicate with Java APIs and restful APIs. Java API
If you are using the Java,elasticsearch built-in two client, you can use it in your code:Node client: The node client joins a cluster as a non-data node. In other words, it doesn't have any data on its own, but he knows what data is on which
referenced to the official Docker library, which is the version of this installation 3.11.3 . docker run --name cassandra-3.11.3 -p 7000:7000 -p 7001:7001 -p 7199:7199 -p 9042:9042 -p 9160:9160 -d cassandra:3.11.32. Elasticsearch InstallationThe installation of Elasticsearch is referenced to the official Docker library, which is the version of this installation 5.5.2 . docker run --name es-5.5.2 -p 9200:9200 -p 9300:
(we can also log in to your Docker-hub account and upload your own image)
Docker Pull Elasticsearch
3. Use image as a template to start Docker-container, you can provide ES services
Docker run-it--name es-p 9200:9200-p 9300:9300-v d:/docker/data/es:/usr/share/elasticsearch/data-v D:/docker/logs/es /:/user/share/elasticsearch/logs Elasticsearch
A) Run: Create a new container and run the specified command
This article has compiled 10 articles on phpnatsort () functions. For more information, see this article. I have compiled 10 articles on php natsort () functions. For more information, see
1. Analysis of nvidia geforce 9400 gt php natsort kernel functions page 1/2
Introduction: nvidia geforce 9400 gt: nvidia geforce 9400 gt php natsort kernel function analysis p
Debian integrates the Nvidia Driver (applicable to the 2.6 kernel)-the Linux Release Technology-Debian information. For more information, see the following. Author: Black Hole
Cause:
Since AIGLX and XGL are available, I 'd like to try it. I don't want to try to start X.
Note: Applicable to the 2.6 kernel
1. download and install the driver from nvidia
1.1 If you use GeForce MX 100/200, download it.
NVIDIA-Linux-x86-1.0-9631-pkg1.run
1.2 install driv
D3d9 GPU HacksI ' ve been trying to catch up what hacks GPU vendors has exposed in Direct3D9, and turns out there's a lot of them!If you know more hacks or more details, please let me know in the comments!Most hacks is exposed as custom ("FOURCC") formats. So-check for the CheckDeviceFormat . Here's the list (Usage column codes:ds=depthstencil, Rt=rendertarget; Resource column codes:tex=texture, Surf=surface). More green = more hardware support.
Format
Usage
Resource
install the graphics card driver) 2d7d3d6e
Mount-UW/Rm-RF/system/library/extensions/nvinject. kextchown-r root: wheel/system/library/extensionschmod-r 755/system/library/extensionsrm-RF/system/library/extensions. mkextrm-RF/system/library/extensions/caches/Rm-RF/system/library/caches/
At this point, we only delete the nvinject. kext file, while many NVIDIA graphics cards need to add IDs to geforce. kext, nvdanvx0hal. kext, and nvdaresman. kext. There
You only need to install compiz.
If you are using a fedora 10/11 system, use the following method:You must first open the terminal: Application> System Tools> TerminalFirst, install a third-party software warehouse:Su-Rpm-IVH/
Http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
Rpm-IVH/
Http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
Yum update
Second, install the video card driver:I use NVIDIA graphics cards. I can only t
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.