- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 JavaScript Build Tree Data Structure Using Array
function Tree(name,parent,child){ this.name = name; this.parent = parent || ''; this.children = child || []; this.addNode = function (parent){ this.children = parent; } this.addChild = function (child
2014-05-10 04:03:41
1501
原创 Java Notify And Wait 实例
最近写SEE2014的代码,碰到了多线程访问共享变量的问题。 1. 单击发送button,监听器置sendFlag为true. 2. 另一个线程循环等待sendFlag置true,并发送消息。 代码如下,这是GUI中button响应函数的方法: public synchronized void sendButtonActionActionPerformed(ActionEvent
2014-01-28 00:36:12
770
原创 HDFS 拷贝本地文件至HDFS时的异常[INFO fs.FSInputChecker: Found checksum error]处理方法
boolean deleteSource = false; boolean overwrite = true; boolean returnValue = false; Configuration hdfsconf = new Configuration(); hdfsconf.addResource(new Path("/usr/local/hadoop/conf/cor
2013-03-26 20:54:55
1775
原创 Lucene3.6 Example和一些Tips
1 IndexWriterConfig的设置 代码如下所示: IndexWriterConfig conf = new IndexWriterConfig(Version.LUCENE_36, new StandardAnalyzer(Version.LUCENE_36)); conf.setOpenMode(IndexWriterConfig.OpenMode.CREATE); IndexW
2012-07-31 22:29:11
998
原创 一张图解释链表翻转
附上递归的算法: LinkList ReverseLinkList( pNode PreNode, pNode CurrentNode ) { if(!CurrentNode) /*如果当前节点指针为空,则返回NULL,此种情况只有在*/ return NULL; /*链表头指针为空时才可能执行到*/ if(!CurrentNode->next) /*如果下一节点指针为空,则将
2012-05-16 11:26:25
654
原创 Mac OS ssh-copy-id Command not found 导致无法对目标服务器上传一个公钥的问题解决方案
解决Mac没有ssh-copy-id命令的问题: 使用以下命令代替ssh-copy-id: cat ~/.ssh/id_dsa.pub | ssh hadoop@slave "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys" FYI This command will prompt you for the login passw
2012-05-11 20:50:08
4195
原创 Hadoop配置:file could only be replicated to 0 nodes, instead of 1问题解决方法
今天执行bin/hadoop fs -copyFromLocal /Users/hadoop/Weibo/input/FavoriteFile.txt /user/hadoop/FavoriteFile.txt时候碰到了以下问题: file “*********”could only be replicated to 0 nodes, instead of 1 然后check了一下dfsh
2012-05-11 14:49:56
1484
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人