原创 hbase shell 根據rowKey範圍批量刪除

hbase shell 根據rowKey範圍批量刪除 #!/bin/bash tablename=$1 startrow=$2 endrow=$3 if [ $# -eq 0 ];then echo "請輸入表名,startRow

原创 redis-py Sentinel的使用

Sentinel初始化例子 from redis.sentinel import Sentinel conf = { 'sentinel': [('10.160.84.01', 26379), ('10.160.85.02

原创 個人git命令收集文章

git命令收集 已刪除遠程分支但本地還能看到遠程分支 git remote prune origin 按照遠程倉庫裁剪本地記錄 撤銷本地所有修改 git checkout . //未add git checkout -- fil

原创 redis lua腳本令牌桶限流實現

redis.replicate_commands() local key = KEYS[1] -- 令牌桶標識 local capacity = tonumber(ARGV[1]) -- 最大容量 local quota = t

原创 c++11單例模板類

#ifndef ITC_DAAS_SINGLETON_H_ #define ITC_DAAS_SINGLETON_H_ #include <memory> #include <mutex> class Uncopyable {

原创 【轉】elasticsearch 基礎 —— URI搜索

大神地址:https://blog.csdn.net/ctwy291314/article/details/82744548 有兩種形式的 搜索 API:一種是 “輕量的” 查詢字符串 版本,要求在查詢字符串中傳遞所有的 參數,另一

原创 啓動docker容器不退出

docker run -d -it --name ubuntu1 coreapps/ubuntu16.04:latest /bin/bash

原创 c++標準庫-lambda&函數對象

lambda #include <iostream> #include <vector> #include <algorithm> using namespace std; bool compare(int &elem) { re

原创 【轉】Elasticsearch乾貨(三):對於數值類型索引優化

Elasticsearch中數據類型 本來想自己總結一下的,無意中發現了一篇文章,總結的很詳細,瞬間打消了我的念頭。直接搬來:https://blog.csdn.net/chengyuqiang/article/details/790

原创 c++標準庫-c++通用工具

Pair 和 Tuple c++11中 Tuple Class被重新實現,有了template可以接受不定實參的能力。可以接受任意大小的異質集合。 Class Pair仍舊爲兩個元素服務,用來組合一個雙元素的Tuple。 Pair 其

原创 大牛博客整理

陶輝,聚焦分佈式高可用系統。個人網站:www.taohui.pub

原创 【轉】哈希函數介紹

地址: http://www.alloyteam.com/2017/05/hash-functions-introduction/

原创 c++標準庫-c++11新特性

Range-Based for循環 int x2[]{1, 2, 3, 4, 6}; for (auto i:x2) { cout << i << endl; } { //等同上面for循環

原创 [轉】一致性哈希算法與C++實現

地址:https://blog.csdn.net/okiwilldoit/article/details/51352743