• fastdfs体验

    download source code

    wget http://fastdfs.googlecode.com/files/FastDFS_v4.04.tar.gz

    yum install libevent libevent-devel

    Setup#step 1. download FastDFS source package and unpack ittar xzf FastDFS_v4.04.tar.gz#for example:tar xzf FastDFS_v4.04.tar.gz

    阅读全文
    作者:2hei | 分类:cloud, dfs | 阅读:6,615 views | 标签:
    fastdfs体验已关闭评论
  • centos5.4升级网卡驱动

    机器型号:Dell R710,操作系统Centos5.4,症状:流量大时网卡不通,日志无明显迹象。 解决办法,升级网卡驱动: 升级前: [root@2hei.net]# ethtool -i eth0 driver: bnx2 version: 1.9.3 firmware-version: 5.2.3 NCSI 2.0.11 bus-info: 0000:01:00.0 步骤如下: wget http://ftp.us.dell.com/network/Bcom_LAN_16.4. ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:4,102 views | 标签:,
    centos5.4升级网卡驱动已关闭评论
  • 站点被封

    blog久未更新,今天突然收到邮件,说我的站点影响了服务器的性能(reason: site causing performance problems),经检查,是多年前装着玩的一个discuz站点,mysql表占用了2.8GB空间,吼吼,从未维护过的bbs上面居然注册了很多用户,从log上看,真真不少流量,大伙玩的很happy,各个自娱自乐,宛然成了灌水乐园。。。 于 ...

    阅读全文
    作者:2hei | 分类:others | 阅读:3,612 views | 标签:
    站点被封已关闭评论
  • alexa排名facebook超过了google

    几天没见, Facebook目前Alexa排名全球第一,美国本土排名第二,Google正好相反。这让我想起了几年前yahoo被google赶超的情形,真是三两年河东,三两年河西啊,难免感慨唏嘘。 从另一侧面也反映了目前社交网络的火爆程度带来的巨大流量,而智能手机及各种应用,api的调用更是功不可没。 Alexa地址: http://www.alex ...

    阅读全文
    作者:2hei | 分类:IT | 阅读:4,775 views | 标签:, ,
    alexa排名facebook超过了google已关闭评论
  • run or spawn in pexpect

    Pexpect is a Python module for spawning child applications and controlling them automatically. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup scripts for duplicating software package installations on different ...

    阅读全文
    作者:2hei | 分类:python | 阅读:4,270 views | 标签:
    run or spawn in pexpect已关闭评论
  • 中国移动之”大云” — CHINA MOBILE’S BIGCLOUD

    中国移动的“大云”弹性计算系统(BC-EC)包括三部分:

    1)web portal组件为用户提供自助服务的通道;
    2)Front-end管理服务组件提供系统服务,应用,系统操作,用户管理,账单服务及数据库等;
    3)Front-end组件提供和Qzone类似的功能来管理OpenNebula的back-ends服务。

    中国移动近期准备发布基于BC-EC方案的public的云服务:包含1000+台severs,其中的700台提供服务器的虚拟环境,另外300台服务器为大云提供云存储空间。
    相关概念:

    • 移动“大云”:

    大云是中国移动研究院集成并扩展了多个云计算相关的开源软件和自主研发的部分功能组件的产品,在大云中主要采用了 Hadoop 分布式计算软件和 OpenNebula 弹性计算管理系统,虚拟机使用的是 Xen。在大云的开发过程中,移动对 Hadoop 进行了一些改进,并集成了一些附加功能,目前这些修改大都在逐步开放源代码。

    阅读全文
    作者:2hei | 分类:cloud, IaaS | 阅读:6,400 views
    中国移动之”大云” — CHINA MOBILE’S BIGCLOUD已关闭评论
  • EC2推出高I/O Instance

    随着google和微软的加入,IaaS领域竞争日趋激烈,最近发现EC2新增加了一种适用于数据库应用的需要高I/O性能的instance,应用场景包括像cassandra和MongoDB等NoSQL数据库。该instance使用了固态硬盘(SSD),同时还提供了高性能的CPU,大内存和优良的网络性能。 高I/O性能instance的具体参数如下: · 60.5 GB of memory ...

    阅读全文
    作者:2hei | 分类:cloud, IaaS | 阅读:4,329 views | 标签:,
    EC2推出高I/O Instance已关闭评论
  • Setup Multi Hbase master on Hadoop Cluster

    Hbase

            Setup Multi Hbase master on Hadoop Cluster to avoid single point failure. When active master failed/down for some reason exceed timeout we expected, backup master will be active and take over the role of master, see the value of zookeeper.session.timeout.

    $cat /usr/lib/hbase/conf/hbase-site.xml
    <name>zookeeper.session.timeout</name>
    <value>180000</value>
    <description>ZooKeeper session timeout. HBase passes this to the zk quorum as suggested maximum time for a session.In milliseconds.</description>
    </property>

    • Test scenarios:

    hadoop01.cluster.2hei.net (Hbase master)
    hadoop02.cluster.2hei.net (Hbase backup master)

    阅读全文
    作者:2hei | 分类:hbase | 阅读:6,110 views | 标签:,
    Setup Multi Hbase master on Hadoop Cluster已关闭评论
  • 换掉Movable Type,启用Worldpress

    PK     博客久未更新,今天来个大动作,下决心换掉Movable Type,启用Worldpress,至于替换的原因有很多,比如MT的模板不很给力、垃圾评论太多,再就是人之固有的喜新厌旧等等~。 目前暂不打算把MT里面旧的文件导过来,只是保留了MT的链接到WP。 一切从头,更换了theme和plugin, 此刻心情大好! 绳命,是剁么的回 ...

    阅读全文
    作者:2hei | 分类:others | 阅读:7,004 views
  • hbase Daughter regiondir does not exist

    Hbase master logs: 12/05/14 13:33:44 INFO master.LoadBalancer: Skipping load balancing.  servers=10 regions=261 average=26.1 mostloaded=27 leastloaded=26 12/05/14 13:33:44 WARN master.CatalogJanitor: Daughter regiondir does not exist: hdfs://2hei.net:8020/hbase/RecSys_Catalog/7d100af9ac714d ...

    阅读全文
    作者:2hei | 分类:hbase | 阅读:3,945 views | 标签:
    hbase Daughter regiondir does not exist已关闭评论
  • ubuntu编译xen报缺少iasl的处理

    解决办法是先编译好iasl,copy到$PATH中。 wget http://acpica.org/download/acpica-unix-20110922.tar.gztar zxvf acpica-unix-20110922.tar.gzcd acpica-unix-20110922/compilermakecp iasl /usr/bin 接下来可以顺利的编译通过xen了。wget http://bits.xensource.com/oss-xen/release/4.1.2/xen-4.1.2.tar.gz$ tar zx ...

    阅读全文
    作者:2hei | 分类:ubuntu | 阅读:3,895 views | 标签:,
    ubuntu编译xen报缺少iasl的处理已关闭评论
  • BUG of kickstart config file of Ubuntu

    利用RHEL的kickstart安装ubuntu,通过已有的一台ubuntu的kickstart工具生成了cfg文件,结果中看不中用,clearpart不起作用,无法完全的无人值守安装,因为无法自动删除raid和lvm,所以安装的时候只好把设定好的raid及分区部分注释掉,然后通过文本安装页面进行配置。另外openssh-server也木有安装好,只能通过console手 ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,492 views | 标签:,
    BUG of kickstart config file of Ubuntu已关闭评论
  • pexpect Timeout exceeded in read_nonblocking()

    gg resolve from bbs:vi /usr/lib/python2.6/site-packages/pxssh.py#add line 134,135:    123     def synch_original_prompt (self):    124     125         “””This attempts to fi ...

    阅读全文
    作者:2hei | 分类:python | 阅读:4,848 views
    pexpect Timeout exceeded in read_nonblocking()已关闭评论
  • Linux Keyboard shortcut keys

    CTRL + C    Cancels the currently running command.CTRL + D    Logs out of the current session.CTRL + Z    Cancels current operation, moves back a directory or takes the current operation and moves it to the background. CTRL + A    Move ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:75,197 views | 标签:
    Linux Keyboard shortcut keys已关闭评论
  • nice linux

    Just a mark: nice -n 19 nice 19 sudo nice -n -20 nice -20 ————- $man nice NICE(1)                          User Commands                         N ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:4,935 views
    nice linux已关闭评论
  • reset low speed USB device using ehci_hcd

    dmesg has such logs: usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5 ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:6,688 views
    reset low speed USB device using ehci_hcd已关闭评论
  • Linux will keep /tmp files for 10 days by default

    For files in /tmp directory, linux has cron at /etc/cron.daily to deal with:[2hei.net cron.daily]$ cat tmpwatch flags=-umc/usr/sbin/tmpwatch “$flags” -x /tmp/.X11-unix -x /tmp/.XIM-unix \    -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp/usr/sbin/tmpw ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:6,266 views | 标签:
    Linux will keep /tmp files for 10 days by default已关闭评论
  • 从源码编译rpm,安装升级 openssl及openssh 最新版本

    当前版本:$ ssh -VOpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008目标版本:openssh-5.8p2.tar.gzopenssl-0.9.8r.tar.gz compile and upgrade openssl-0.9.8rwget http://www.openssl.org/source/openssl-0.9.8r.tar.gztar zxvf openssl-0.9.8r.tar.gzmkdir -p /usr/src/redhat/SPECS/mkdir -p /usr/src/redha ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:5,309 views | 标签:,
    从源码编译rpm,安装升级 openssl及openssh 最新版本已关闭评论
  • cassandra cluster install and configuration

    1) Install http://labs.renren.com/apache-mirror/cassandra/0.7.6-2/apache-cassandra-0.7.6-2-bin.tar.gz(apache官网推荐人人的mirror,不过link有问题 ^_^)   * tar -zxvf apache-cassandra-$VERSION.tar.gz  * cd apache-cassandra-$VERSION  * sudo mkdir -p /var/log/cassandra  * sudo cho ...

    阅读全文
    作者:2hei | 分类:OpenSource | 阅读:3,684 views
    cassandra cluster install and configuration已关闭评论