三台机器分别命名为:hadoop-master ip:192.168.0.25hadoop-slave1 ip:192.168.0.26 hadoop-slave2 ip:192.168.0.27部署前的基本准备:三台机器共同的用户hadoop,三台机器已经设置好静态ip且能互相pi...
分类:
系统相关 时间:
2014-12-14 21:08:05
阅读次数:
360
参考文章:
使用Redis bitmap进行活跃用户统计
本文提供基于Sort Set进行活跃用户统计的PHP版本:
https://github.com/billfeller/billfeller.github.io/blob/master/code/UserTj.php...
分类:
Web程序 时间:
2014-12-14 00:48:34
阅读次数:
205
作者:zhanhailiang 日期:2014-12-13
用Redis存储好友关系-python版
本文提供对应的PHP版本:
https://github.com/billfeller/billfeller.github.io/blob/master/code/FriendGraph.php...
分类:
Web程序 时间:
2014-12-13 19:25:17
阅读次数:
440
测试环境:master: CentOS 6.6 (x86_64), MySQL5.6.22slave: Windows 8(x86_64), MySQL5.6.19相关名词:主从复制,读写分离,数据备份Replication允许将master数据库的数据复制到多个slave数据库上,replicat...
分类:
数据库 时间:
2014-12-13 19:24:47
阅读次数:
207
High Availability, Load Balancing, and Replication Feature Matrix Feature Shared Disk Failover File System Replication Hot/Warm Standby Using PITR Trigger-Based Master-Standby Replication Statement...
分类:
数据库 时间:
2014-12-13 12:28:21
阅读次数:
360
列表映射是个非常有用的方法,通过对列表的每个元素应用一个函数来转换数据,可以使用一种策略或者方法来遍历计算每个元素。
例如:
params = {"server":"mpilgrim", "database":"master", "uid":"sa", "pwd":"secr...
分类:
编程语言 时间:
2014-12-13 09:40:01
阅读次数:
198
S1:A typical READ or WRITE sequence begins by the master sending a start bit. After thestart bit, the master sends the slave device’s 8-bit address. T...
分类:
其他好文 时间:
2014-12-12 18:35:49
阅读次数:
481
When the brake fluid level drops too low in the master cylinder reservoir, air bubbles can get caught in the lines, reducing the overall strength of t...
分类:
其他好文 时间:
2014-12-12 18:19:10
阅读次数:
134
1.puppet master puppet master 默认是以Ruby内建的WEBRick在后台运行的守护进程,同样也可以采用最常用的Web服务器apache和nginx替换WEBRick以提升性能.puppet master主要功能是编译配置文件,文件,模版,节点的自定...
分类:
其他好文 时间:
2014-12-12 17:12:53
阅读次数:
321
那今天说下第2种,命令执行格式如下:salt‘kvm.tiancity.com‘virt.initweb204512nic=nicsdisk=system在这里,我们需要注意下对与kvm/qemu不允许使用profile,我们需要将virt.py改下代码:这样,就允许我的试验环境了。我的想法是,我的虚拟机镜像文件被存储在/var/lib/libvirt/p_..
分类:
其他好文 时间:
2014-12-12 16:53:56
阅读次数:
230