原创 使用百度的正確姿勢

指定網站 xxx site:xxx.com 完全匹配 “xxx” 多個關鍵詞 xxx + xxx 指定主題: intitle:xxx 指定類型: fileytype:pdf xxx

原创 流式計算和批處理計算

批處理 mapReduce 流計算

原创 User '' has exceeded the 'max_connections_per_hour' resource (current value: 30)

問題: User 'lot' has exceeded the 'max_connections_per_hour' resource (current value: 30) 分析: 解決:

原创 linux永久修改主機名

執行命令: hostnamectl set-hostname new-name 重啓: reboot ok, 搞定 查看一下: cat /etc/hostname cat /etc/hosts cat /net/sysconfig

原创 org.apache.http.client.ClientProtocolException

問題: org.apache.http.client.ClientProtocolException

原创 windows設置"開始/菜單"程序

所在目錄: C:\ProgramData\Microsoft\Windows\Start Menu\Programs 編輯該目錄即可

原创 Errno 30] 只讀文件系統: '/var/cache/yum/x86_64/7/base/repomd.xml.old.tmp'

問題: Errno 30] 只讀文件系統: '/var/cache/yum/x86_64/7/base/repomd.xml.old.tmp' 分析: 不知道到底是什麼,但一定yum源有了問題; 網上搜了一大堆,大多是yum cl

原创 disconnected java.net.ConnectException: Connection refused: no further

問題: kafka啓動正常,發送消息時報錯 Connection with /x.x.x.x:x disconnected java.net.ConnectException: Connection refused: no fur

原创 性能指標和壓測

1. 性能指標 qps: 每秒處理完請求的次數,每秒可以處理完成多少個請求 Tps: 每秒處理完事務的次數, 每秒可以處理多少個事務 (一次Tps的過程中可以產生幾次Qps) 平均響應時間: 系統完成一次請求的平均響應時間

原创 概念性

測試 白盒測試:代碼級別的測試,手段包括語句覆蓋、判定覆蓋、條件覆蓋、路徑覆蓋、條件組合覆蓋。 黑盒測試:不考慮程序的內部實現,驗證結果是否滿足需求;一個輸入,一個輸出,和期望值作比較。 *. 單元測試 1. 場景 —— co

原创 查看是否加入開機啓動systemctl list-unit-files

查看是否加入開機啓動項: systemctl list-unit-files |grep xxx

原创 System.arraycopy(Object src, int srcPos, Object dest, int destPos, int length)

List 等集合常用: System.arraycopy(); //將源數組複製到目標數組

原创 2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)

問題: 2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) 背景: 環境搭建 --

原创 如何實現一個海量數據的統計任務

如何實現一個海量數據的統計任務?

原创 01.SQL的前世今生

SQL語言