一些小笔记会持续追加到这里
2016-3-25 22:09:24
重启或添加节点:
$bin/hadoop-daemon.sh start datanode
————————–
2016-3-25 22:09:31
Had the same problem with 2.6.0, and shamouda’s answer solved it (I was not using dfs.hosts at all so that …… 阅读全文
hbase 创建表时提示存在删除时时又提示不存在
看到这里,http://arnon.me/2013/01/killin…
One of our team leaders approached me in the hall today and asked if I could land a hand in troubleshooting something. He and our QA lead were configuring one of our test Hadoop clusters after an upgrade and they had a problem with one table they we…… 阅读全文
hadoop 2.5.2 集群安装
之前写过一个,http://zrj.me/archives/888,不过现在是 2.5.2,东西不同了,安装方式有所变化。
说起来,主要以下几点:
安装 JDK
打通 SSH
停掉防火墙
配置 core-site.xml, maprd-site.xml, hdfs-site.xml,新增了一个 yarn-site.xml
参考这里的文章,http://blog.csdn.net/tang9140/…,http://blog.csdn.net…… 阅读全文
Mac 鼠标匀速滚动
新上手 Mac 的时候发现他的鼠标滚轮,在高速滚动的时候,会有一个加速效果,实在是不能忍,于是搜了一下,发现这个帖子,http://www.weiming.info/zhuti/…,里面有说道:
c*****u
2013-12-07 15:24:34
1在mac上试了几个PC上的带滚轮的鼠标,发现滚轮的速度不是均匀的,而是有加速度的
,刚开始滚时网页慢慢下移,然…… 阅读全文
spring mvc 的 controller 函数的参数
学习 spring mvc 的过程中,发现他的 controller 的函数的入参很是神奇,变化多端,捉摸不定,查了一下,这里有说:http://stackoverflow.com/quest…
The general answer is “Spring magic”; however, “Supported handler method arguments and return types” in the MVC chapter of the …… 阅读全文
ruby gem 安装 compass
这年代,前端越来越复杂,又是 gem 又是 compass,又是 less 又是 sass,还有 grew 和 grunt,一堆堆的名字,上来就能把新手给吓个半死,这个暂且按住不说。
这年代,凡是个语言就有要个包管理器,不过这个倒是应该,任何语言都面临着库管理的问题,但是能不能不要假设网络一定是好的啊,要知道这个世上还有天朝这种孤岛…… 阅读全文
推荐一下央视的《远方的家》《边疆行》
这个节目其实有了很久了,大约是 2011 年左右的时候就有了,也看了很久,越看越是觉得好,专门来推荐一下,说好是因为一方面这个节目本身做的好,选材不错,主持人也尽心尽力,算得上一个高质量的旅游栏目,另外一方面是这种类型的节目恰恰好适合用电视这种方式来看。
具体来说,首先是觉得了解一下常见的自然地理和人文…… 阅读全文
linux tcpdump
我一般用 tcpdump 有两种用法,一个是存盘,拿 wireshark 看,那么的话,就这么写
tcpdump -s 0 -i any -p udp and src 10.170.7.40 -w `date +%s`.pcap
或者实时打印到屏幕,就参考这里,http://www.askbjoernhansen.com…,这么写
I always forget the parameters for this and have to look them up in the …… 阅读全文
linux ss
ss 是一个类似 netstat 的网络连接查看工具,man page 是这么说的
ss – another utility to investigate sockets
而 netstat 的 man page 中也有说到
This program is obsolete. Replacement for netstat is ss.
常用命令有
-s 参数,打印 summary
# ss -s
Total: 1596 (kernel 1890)
TCP: 7587 (estab …… 阅读全文
python 日志初始化
import logging
logging.basicConfig(format = '[%(asctime)s][%(levelname)s] %(message)s [%(funcName)s::%(lineno)d]', level = logging.DEBUG)
logging.debug(123)
—————————
2016-2-19 09:26:26 update
logging.basicConfig(stream=sys.stdout, for…… 阅读全文