2018年8月27日

统计请求最高的TOP 5

摘要: cat access.log |awk -F "," '{print$14}'|awk -F "\"" '{print$4}'|sort |uniq -c |sort -nr |head -5 阅读全文

posted @ 2018-08-27 15:27 net2817 阅读(76) 评论(0) 推荐(0) 编辑

2018年7月20日

mysql 5.7 基于GTID 主从同步的1236故障处理(其它事务故障等同)

摘要: 登录从库 stop slave; 查看执行事务 show slave status\G Retrieved_Gtid_Set: ee3bdb44-f6a1-11e7-b194-005056a35fd4:21315405-51853406 Executed_Gtid_Set: ee3bdb44-f6a 阅读全文

posted @ 2018-07-20 12:09 net2817 阅读(190) 评论(0) 推荐(0) 编辑

基于xtrabackup GDIT方式不锁库作主从同步(主主同步同理,反向及可)

摘要: 1.安装数据同步工具 注:xtrabackup 在数据恢复的时候比mysqldump要快很多,特别是大数据库的时候,但网络传输的内容要多,压缩需要占用时间。 yum install https://www.percona.com/downloads/XtraBackup/Percona-XtraBa 阅读全文

posted @ 2018-07-20 11:28 net2817 阅读(143) 评论(0) 推荐(0) 编辑

2018年7月4日

关于cdh 5.X 的agent 客户端镜像安装注意事项

摘要: 当把客户端镜像安装时,每个客户端程序会生成UUID作为唯一标识,重新 安装时要删除 rm -rf /var/lib/cloudera-scm-agent 如果不删除会造成主机列表中IP一直在变的情况。 阅读全文

posted @ 2018-07-04 19:19 net2817 阅读(183) 评论(0) 推荐(0) 编辑

2018年6月29日

redis 4 集群重启与数据导入

摘要: 1.redis 4 平时启用aof db与每天的完整备份。 2.集群状态检查 cluster info 检查集群状态 cluster nodes 检查节点状态 redis-cli -c -p 7000 登录 redis-trib.rb check *.*.*.*:7000 检查集群文件状态 redi 阅读全文

posted @ 2018-06-29 19:00 net2817 阅读(1550) 评论(0) 推荐(0) 编辑

2018年6月6日

docker save 批量导出脚本

摘要: [root@vultr home]# cat docker_sove.sh docker images > images.txtawk '{print $1}' images.txt > images_cut.txtsed -i '1d' images_cut.txtwhile read LINEd 阅读全文

posted @ 2018-06-06 15:36 net2817 阅读(543) 评论(0) 推荐(0) 编辑

2018年6月1日

cdh5.13.1 升/降级SPARK2 (parcel安装的同理)

摘要: 下载相关的CSD包与parcel包、parcel包SHA 放置在相关位置。 注意:重启cloudera-scm-server 从parcel 里删除旧包,启用新包 csd目录里其它JAR包要删除 阅读全文

posted @ 2018-06-01 11:28 net2817 阅读(202) 评论(0) 推荐(0) 编辑

2018年5月28日

kafka NoNode错误

摘要: 报错 bin/kafka-run-class.sh kafka.tools.ConsumerOffsetChecker --zookeeper localhost:2181 --group=app-topic-group --topic app-topic[2018-05-28 14:15:09,0 阅读全文

posted @ 2018-05-28 14:57 net2817 阅读(1289) 评论(0) 推荐(0) 编辑

2018年5月25日

rancher 2 webhook 格式

摘要: { "version":"4", "groupKey":<string>, "status":"<resolved|firimg>", "receiver":<string>, "groupLabels":<object>, "commonLabels":<object>, "commonAnngt 阅读全文

posted @ 2018-05-25 16:43 net2817 阅读(397) 评论(0) 推荐(0) 编辑

2018年5月23日

rancher 2 安装 longhorn

摘要: 宿主机为centos 7 注意一定要安装open-iscsi 阅读全文

posted @ 2018-05-23 16:10 net2817 阅读(506) 评论(0) 推荐(0) 编辑

导航