上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: storm启动一段时间后,无征兆的停止了,然后nimbus,supervisor,ui所有的worker都stop了。我用的storm是0.8.2版本的nimbus中留下的log如下2014-02-19 17:05:35 nimbus [INFO] Shutting down master2014-02-19 17:05:35 ClientCnxn [INFO] EventThread shut down2014-02-19 17:05:35 ZooKeeper [INFO] Session: 0x14395fa892b0032 closed2014-02-19 17:05:35 nimbus 阅读全文
posted @ 2014-02-21 11:45 yanghuahui 阅读(4219) 评论(5) 推荐(2)
摘要: 首先以管理员身份运行cmd,保证之后在黑框中输入的命令都有管理员权限C:\Windows\system32>netshnetsh>intnetsh interface>ipnetsh interface ipv4>设置/修改ip地址,子网掩码,网关的格式netsh interface ipv4>set/add "本地连接" static IP地址 mask gateway设置DNS命令格式netsh interface ipv4>set dns "本地连接" static dns地址 阅读全文
posted @ 2014-01-15 15:02 yanghuahui 阅读(928) 评论(0) 推荐(1)
摘要: daemontools项目:http://cr.yp.to/daemontools.html1.安装daemontoolsmkdir /packagechmod 755 /packagecd /packagewget http://cr.yp.to/daemontools/daemontools-0.76.tar.gztar zxf daemontools-0.76.tar.gzcd admin/daemontools-0.76vim src/error.h 找到:extern int errno; 改成:#include package/install2.监控zookeepercd /ser 阅读全文
posted @ 2014-01-13 20:34 yanghuahui 阅读(1816) 评论(0) 推荐(0)
摘要: 在zookeeper的目录下新建一个脚本,内容如下(zookeeper bin下面也有zkCleanup.sh脚本,原理一样,都是调用java类)shell_dir=$(cd "$(dirname "$0")"; pwd)cd $shell_dir && java -cp zookeeper-3.4.5.jar:lib/log4j-1.2.15.jar:lib/slf4j-api-1.6.1.jar:lib/slf4j-log4j12-1.6.1.jar:conf/log4j.properties org.apache.zookeeper 阅读全文
posted @ 2014-01-10 18:42 yanghuahui 阅读(1308) 评论(0) 推荐(0)
摘要: Given a collection of numbers, return all possible permutations.For example, 元素可以是重复也可以不重复,不一定有序[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2], and[3,2,1].[1,1,2]have the following unique permutations:[1,1,2],[1,2,1], and[2,1,1].如何计算字符串的下一个排列了?先让数组升序,考虑程序运行中的一种情况。来考虑& 阅读全文
posted @ 2014-01-08 17:28 yanghuahui 阅读(544) 评论(0) 推荐(0)
摘要: kafka 单台机器部署 1个partitionstorm 单台机器部署hbase 四台机器集群机器配置大概是4G cpu 4G内存从kafka 读出到storm,然后flush到hbase中34秒处理了6869条记录,每条记录416字节仅仅从kafka 读出到storm4秒处理了6869条记录,每条记录416字节如果开启两个bolt,flush到hbase28秒处理了6869条记录,每条记录416字节 (提升了6秒)如果开启5个bolt,flush到hbase19秒处理了6869条记录,每条记录416字节 (再提升了11秒) 阅读全文
posted @ 2014-01-06 18:06 yanghuahui 阅读(833) 评论(0) 推荐(1)
摘要: cd /etc/yum.repos.d/wget wget http://mirrors.163.com/.help/CentOS6-Base-163.reposed -i "s/\$releasever/6/" CentOS6-Base-163.repo 阅读全文
posted @ 2014-01-06 15:33 yanghuahui 阅读(173) 评论(0) 推荐(1)
摘要: tomcat的server.xml文件,Connector标签增加useBodyEncodingForURI="true"属性web.xml如下配置 setCharacterEncoding org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true setCharact... 阅读全文
posted @ 2013-12-31 16:17 yanghuahui 阅读(343) 评论(0) 推荐(1)
摘要: hadoop distcp -i hdfs://192.168.10.211:9000/fileinfo hdfs://192.168.24.46:9000/fileinfodistcp [OPTIONS] * -i Ignore failures 阅读全文
posted @ 2013-12-25 15:03 yanghuahui 阅读(280) 评论(0) 推荐(0)
摘要: 思路:前序遍历路径上节点的值先放入list,然后把节点的right-child放入栈,一次前序遍历到叶节点的时候,去栈中取出节点,循环进行前序遍历到叶节点。最后返回listpublic class Solution { public ArrayList preorderTraversal(TreeNode root) { ArrayList result = new ArrayList(); Stack stack = new Stack(); if(root == null) { retur... 阅读全文
posted @ 2013-12-24 21:42 yanghuahui 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页