摘要: http://www.cnblogs.com/hustcat/archive/2010/06/30/1768506.html1、safemodebin/hadoopfs-put./inputinputput:org.apache.hadoop.hdfs.server.namenode.SafeModeException:Cannotcreatedirectory/user/root/input.Namenodeisinsafemode.解决方法:NameNode在启动的时候首先进入安全模式,如果datanode丢失的block达到一定的比例(1-dfs.safemode.threshold.p 阅读全文
posted @ 2014-03-26 16:29 悟寰轩-叶秋 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 安装: http://redis.io/download在线操作命令:http://try.redis.io/命令查询:https://redis.readthedocs.org/en/latest/index.html 阅读全文
posted @ 2014-03-26 10:48 悟寰轩-叶秋 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1 public class TopK extends Configured implements Tool { 2 3 public static class TopKMapper extends Mapper { 4 5 public static final int K = 100; 6 private TreeMap tm = new TreeMap(); 7 8 @Override 9 protected void map(Object key, Text value, Context context) ... 阅读全文
posted @ 2014-03-26 09:50 悟寰轩-叶秋 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 1 public class GroupComparator implements RawComparator { 2 3 @Override 4 public int compare(MyBinaryKey o1, MyBinaryKey o2) { 5 return o1.toString().compareTo(o2.toString()); 6 } 7 8 @Override 9 public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) {10 return Writabl... 阅读全文
posted @ 2014-03-26 09:43 悟寰轩-叶秋 阅读(3266) 评论(0) 推荐(0) 编辑
摘要: 来自:http://blog.csdn.net/liuzhoulong/article/details/211121011,下载0.9.0.1http://storm.incubator.apache.org/downloads.html2,安装就jdk,python,zookeeper在服务器 "... 阅读全文
posted @ 2014-03-26 09:34 悟寰轩-叶秋 阅读(947) 评论(0) 推荐(0) 编辑