记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
转载自:https://elasticstack.blog.csdn.net/article/details/114639152MongoDB 是一个基于分布式文件存储的数据库。由 C++ 语言编写。旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。MongoDB 是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。Elasticsearch 是一个高效强大的大数据搜索引擎。它的 Speed, Scale 及 Relevance 是很多数据库不具有的。通过 Elasticsearch 的高效搜索引擎,我们可以快速地搜索相关的内容,我们也可以使用 Kibana 所提供的可视化为数据提供洞察。在今天的文章中,我将介绍如何把 MongoDB 里的数据同步到 Elasticsearch。如果你对 JDBC 的数据同步到 Elasticsearch,请参阅我之前的文章 “Logstash:如何使用 Logstash 和 JDBC 确保 Elasticsearch 与关系型数据库保持同步”。 在今天的练习中,我将使用如下的系统结构: 在上面的系统中,我有三个机器:两个运行 Ubuntu OS 20.04 及一个运行 MacOS 的电脑。在两个 Ubuntu OS 上分别运行 MongoDB,而在 MacOS 上运行有 Elasticsearch 及 Kibana,同时我们还在它上面运行了一个 docker。在 docker 里运行 Monstache。Monstache 是一个...
为elastic docker部署配置安全权限设置文章转载自:https://elasticstack.blog.csdn.net/article/details/105710973创建docker-compose.yml在之前的教程中,那里使用的docker-compose.yml文件没有配置安全。我们需要重新修改:docker-compose.ymlversion: '3.0' services: es01: image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_STACK_VERSION} container_name: es01 environment: - node.name=es01 - discovery.seed_hosts=es02 - cluster.initial_master_nodes=es01,es02 - cluster.name=docker-cluster - bootstrap.memory_lock=true - "ES_JAVA_OPTS=-Xms512m -Xmx512m" - xpack.security.enabled=true - xpack.security.transport.ssl.enabled=true - xpack.security.transport.ssl.keystore.type=PKCS12 - xpack.security.transport.ssl.verification_mode=certificate - xpack.security.transport.ssl.keystore.path=elastic-stack-ca.p12 - xpack.security.transport.ssl.truststore.path=elastic-stack-ca.p12 - xpack....
elasticsearch的index索引配置与修改1、索引设置的查看查看索引的设置通过_settings API,使用GET方法操作。1.1、查看单个索引的设置查看索引new_index的设置,操作如下:GET /new_index/_settings响应如下:{  "new_index" : {    "settings" : {      "index" : {        "creation_date" : "1556890383056",        "number_of_shards" : "1",        "number_of_replicas" : "1",        "uuid" : "zzlhCATaSimuyTHerRKjqA",        "version" : {          "created" : "7000099"        },        "provided_name" : "new_index"      }    }  }}响应的信息包括了索引的创建日期、主分片数和副本数、uuid等信息。1.2、查看多个索引的信息多个索引的信息,...
黑马关于elasticstack6视频讲义资料PDFPDF资料下载
elastic stack7.10新建索引并添加映射mappings信息。如下:PUT /it{ "settings": { "index": { "number_of_shards": "2", "number_of_replicas": "1" } }, "mappings": { "properties": { "name": { "type": "text" }, "age": { "type": "integer" }, "mai1": { "type": "keyword" }, "hobby": { "type": "text" } } }}rest接口返回信息如下:{ "acknowledged": true, "shards_acknowledged": true, "index": "idd"}表明索引创建完成.查看索引信息如下:GET /it/{ "idd": { "aliases": {}, "mappings": { "properties": { "age": { "type": "integer" }, "hobby": { "type": "text" }, "mai1": { "type": "keywo...
Oracle 关于 not in 的坑 ,not in 查询不出数据select  *  from A a   where  a.id not  in     (select b.id          from B b )如上查询 如果 当 B表 的 id中有 null 时 此时数据查询不到 应该为select  *  from A a   where  a.id not  in     (select b.id          from B b           where b.id is not  null     )因为 not in的子集中不能有 null  
       elasticsearch7.8权限控制和规划 目录 一、集群权限配置 二、用户和角色管理 2.1、Security privileges(权限管理) 2.2、role(角色)介绍和操作 2.3、user(用户)介绍和操作  三、简单权限规划   由于在版本7开始,x-pack可以免费使用了,但是权限控制免费的不够细,但是控制到索引级别都基本够用了。付费的可以体验更细致的权限控制。本文的基础是已经有了es集群的基础上...
 
0

elasticsearch如何设计集群

发表者:admin分类:大数据2021-03-16 20:39:35 阅读[817]
elasticsearch如何设计集群 目录 一、如何对机器进行选择 二、集群安装要怎么配置和设计 2.1、系统设置 2.2、基本安装配置 2.3、jdk相关配置 3.4、相关插件配置 三、索引要怎么设计 四、读写性能要怎么提升 ...
Elasticsearch7.2集群的安全性配置 目录   集群身份认证 集群内部通讯的安全 集群与外部间的安全通信 集群身份认证 说明:访问ES集群需要用户名和密码,否则不能调用接口等。 具体实现:这里以单个节点进行演示,ip为192.168.52.127 1)elasticsearch.yml初始配置:cluster.name: test node.name: node-1 path.data: /home/elk/elasticsearch-7.2.0/data path.logs: /home/elk/elasticsearch-7.2.0/logs http.port: 9200 network.host: 0.0.0.0 discovery.seed_hosts: ["192.168.52.127"] cluster.initial_master_nodes: ["node-1"] bin/elasticsearch测试可正常启动,然后访问http://192.168.52.127:9200/可正常访问 关闭elasticsearch 2)更新elasticsearch.yml配置,添加以下内容:xpack.security.enabled: true xpack.security.transport.ssl.enabled: true bin/elasticsearch测试可正常启动,然后访问http://192.168.52.127:9200/发现需要输入用户名和密码才能访问 可以创建默认的用户和分组 3)创建默认的用户和分组 首先,确保e...
elasticsearch7 安装中文分词器与使用方法发车    为什么要在elasticsearch中要使用ik这样的中文分词呢,那是因为es提供的分词是英文分词,对于中文的分词就做的非常不好了,因此我们需要一个中文分词器来用于搜索和使用。今天我们就尝试安装下IK分词。上车1、去github 下载对应的分词插件https://github.com/medcl/elasticsearch-analysis-ik/releases根据不同版本下载不同的分词插件2、到es的plugins 目录创建文件夹cd your-es-root/plugins/ && mkdir ik3、解压ik分词插件到ik文件夹unzip elasticsearch-analysis-ik-6.4.3.zip第二种安装方法还有一种方式 直接通过es的命令进行安装,es版本需要大于5.5.1./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.3.0/elasticsearch-analysis-ik-6.3.0.zip或是.//bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.10.2/elasticsearch-analysis-ik-7.10.2.zip安装好后 重启es会看到 加载了 ik分词了到站IK 分词器简介1,Elasticsearch中文分词我们采用Ik分词,ik有两种分词模...
    总共265页,当前第35页 | 页数:
  1. 25
  2. 26
  3. 27
  4. 28
  5. 29
  6. 30
  7. 31
  8. 32
  9. 33
  10. 34
  11. 35
  12. 36
  13. 37
  14. 38
  15. 39
  16. 40
  17. 41
  18. 42
  19. 43
  20. 44
  21. 45