摘要:
1.kafka所采用的设计方式,盘子就是partition,每个人就是一个consumer,每个苹果就是一条message。办法三每个盘子中苹果的消费是有序的,而办法二的消费是完全无序的 第二种方法: 第三种方法: 2.Partition的读和写 我们知道topic下划分了多个partition,消 阅读全文
摘要:
1.命令 sudo yum update -yyum -y install epel-releaseyum -y install tripwire cd /etc/tripwire/ && tripwire-setup-keyfiles tripwire --init sudo sh -c "tri 阅读全文
摘要:
1.默认查询接口会搜索所有的shard,但也可以指定routing字段,这样就只会查询routing计算出来的shard,提高查询速度。 --使用routing会导致docid不再全局唯一 使用方式也非常简单,只需在查询语句上面指定routing即可,允许指定多个: -- 查询所有分区 GET ro 阅读全文
摘要:
-1.https://www.elastic.co/guide/en/elasticsearch/reference/7.2/removal-of-types.html include_type_name 0.概念 The force merge API allows to force mergin 阅读全文
摘要:
1.不建议启用 内核参数调整下: 打开 vi /etc/sysctl.conf ,将下面2个参数修改成 0 net.ipv4.tcp_timestamps = 0 net.ipv4.tcp_tw_recycle = 0 /sbin/sysctl -p 使修改立即生效」 阅读全文
摘要:
一、在公有云服务器上备份ES 1、创建备份repo curl -uelastic:'ES&ceshi720' -XPUT "http://172.30.0.17:9200/_snapshot/my_cos_backup" -d '{"type": "cos","setti,"access_key_s 阅读全文
摘要:
1.pip离线包缺失 Command "/data/bkce/.envs/bkdata-dataapi/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-p2tIJ_/MySQL-python/setup.p 阅读全文
摘要:
1.报错IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret 2.tomcat版本:Apache Tomcat/8.5.51 参考:https://blo 阅读全文
摘要:
1.403返回页面 #user nobody; worker_processes 4; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/ngi 阅读全文
摘要:
1.挂载 # mkdir /mnt/cdrom # mount /mnt/CentOS-7.0-1406-x86_64-DVD.iso /mnt/cdrom/ 2.配置 # touch CentOS-ISO.repo # cat CentOS-ISO.repo [base] name=CentOS- 阅读全文