上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 34 下一页
摘要: 1 内存分析1.1 jmap -histo 命令pid=`jps | awk '{if ($2 == "Jps") print $1}'`jmap -histo $pid >>1.txt 查看pid中类的内存占用num #instances(实例数) #bytes(占用字节) class name 阅读全文
posted @ 2014-09-28 15:40 谭志宇 阅读(8689) 评论(0) 推荐(0) 编辑
摘要: package CreateGroup;import java.io.IOException;import java.util.List;import java.util.concurrent.CountDownLatch;import org.apache.zookeeper.AsyncCallb... 阅读全文
posted @ 2014-09-28 09:37 谭志宇 阅读(7381) 评论(0) 推荐(0) 编辑
摘要: 3 常用命令3.1. 启动ZK服务: bin/zkServer.sh start3.2. 查看ZK服务状态: bin/zkServer.sh status3.3 停止ZK服务: bin/zkServer.sh stop3.4. 重启ZK服务: bin/zkServer.sh restart 3.5 ... 阅读全文
posted @ 2014-09-28 09:26 谭志宇 阅读(24143) 评论(0) 推荐(0) 编辑
摘要: Watcher设置是开发中最常见的,需要搞清楚watcher的一些基本特征,对于exists、getdata、getchild对于节点的不同操 作会收到不同的watcher信息。对父节点的变更以及孙节点的变更都不会触发watcher,而对watcher本身节点以及子节点的变更会触发 watcher,... 阅读全文
posted @ 2014-09-27 23:40 谭志宇 阅读(1306) 评论(0) 推荐(0) 编辑
摘要: 半路出家学习java, 花了几分钟简单看了。在早上那个例子上稍微改了下,notify 对象上必须使用synchronized我的理解是在java synchronized只是个线程同步标志,但是不会堵塞线程,而wait会堵塞调用者线程,类windows的堵塞函数,而notify相当于解锁(个人把它当... 阅读全文
posted @ 2014-09-27 21:00 谭志宇 阅读(2691) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.CountDownLatch;public class CountDown { private static CountDownLatch connectedSignal = new CountDownLatch(50); static cla... 阅读全文
posted @ 2014-09-27 10:30 谭志宇 阅读(496) 评论(0) 推荐(0) 编辑
摘要: package storm.starter;import backtype.storm.Config;import backtype.storm.LocalCluster;import backtype.storm.LocalDRPC;import backtype.storm.StormSubmi... 阅读全文
posted @ 2014-09-23 20:12 谭志宇 阅读(1244) 评论(0) 推荐(0) 编辑
摘要: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.6.0/bk_installing_manually_book/content/rpm-chap1-11.html(公式)http://developer.51cto.com/art/2014... 阅读全文
posted @ 2014-09-23 06:28 谭志宇 阅读(465) 评论(0) 推荐(0) 编辑
摘要: public synchronized StringBuffer append(String str) { super.append(str); return this; } // 同步方法public AbstractStringBuilder append(String str) { if (s... 阅读全文
posted @ 2014-09-21 08:45 谭志宇 阅读(2149) 评论(0) 推荐(0) 编辑
摘要: 1 reduce side join在map端加上标记, 在reduce容器保存,然后作笛卡尔积缺点: 有可能oom2 map side join 2.1 利用内存和分布式缓存,也有oom风险2.2 自己的想法,参考hive桶的思路, 第一次MR,将两个文件相同的方法分文件输出并打上标记,排序输出,... 阅读全文
posted @ 2014-09-20 20:36 谭志宇 阅读(501) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 34 下一页