由于之前远程桌面不好使,集群出现了missing block的时候没法登陆远程桌面查看是那些节点由于重启导致DataNode进程挂掉。同时简单的用命令hdfs dfsadmin -report查看又不方便,信息量太多,以下是一个用sed和awk实现的简单的脚本:...
分类:
其他好文 时间:
2015-02-26 11:43:39
阅读次数:
187
解释 datafile name中的MISSING关键字...
分类:
其他好文 时间:
2015-02-20 20:56:44
阅读次数:
140
Delphi 和Windows紧密地结合在一起,所以它的API引入了很多Windows的概念(比如文件搜索,打开和加载库文件等等)。FreePascal 被设计为可移植的,所以太贴近Windows的特性被舍弃了。下面是需要注意的要点: Widestrings. Widestring managem...
背景:使用OpenGL的GLFW3.1库的时候,使用其中一些代码报error adding symbols: DSO missing from command line因为使用的是Qcreator,解决方法是在.pro文件里加一些库LIBS +=-lpthreadLIBS +=-lX11 -lXra...
分类:
其他好文 时间:
2015-02-13 18:05:42
阅读次数:
192
pom.xml 内容:[html]view plaincopynet.sf.json-libjson-lib2.4报错误:Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile原因:json-lib是需要区分jdk版本的,pom.xml中的...
分类:
编程语言 时间:
2015-02-12 22:36:21
阅读次数:
544
1.Missing a Javadoc comment:缺少JavaDoc注释
2.First sentence should end with a period:你的注释的第一行文字结束应该加上一个"."
3.Expected @throws tag for 'Exception':在注释中希望有@throws的说明,在方法前得注释中添加这样一行:* @throws Exception if...
分类:
移动开发 时间:
2015-02-12 09:16:19
阅读次数:
204
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2015-02-11 12:40:01
阅读次数:
96
http://www.queness.com/post/9806/5-missing-javascript-number-format-functions这篇文章介绍5种常用的数字转换格式 但是里面有一个小小的不好的编程习惯 就是在把数字转成字符串的时候 使用了 var s = new String...
分类:
其他好文 时间:
2015-02-10 23:03:10
阅读次数:
246
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2015-02-10 14:55:06
阅读次数:
155
#define SQLITE_OK 0 /* 成功 | Successful result *//* 错误码开始 */#define SQLITE_ERROR 1 /* SQL错误 或 丢失数据库 | SQL error or missing databas...
分类:
数据库 时间:
2015-02-10 11:11:06
阅读次数:
205