根据当初 hadoop 安装目录下 conf 目录的 core-site.xml
的设置,找到该目录:进入该目录在 data 和 name 文件夹下均有 current 文件夹 ,和 current 文件夹下有 VERSION
文件主要要做的是使这两个文件中的 namespaceID 相同接下来就是...
分类:
其他好文 时间:
2014-05-09 05:15:30
阅读次数:
305
很久不写 BO-KE 了,来一篇吧,记住这个成功的一刻,把几个主要文件贴出来:
core-site.xml:
fs.defaultFS
hdfs://fc20:9000
hadoop.tmp.dir
/home/ljq/hadoop/tm...
分类:
其他好文 时间:
2014-05-09 00:35:27
阅读次数:
342
题目链接在这题各种RE和WA。 方法上就是BFS,
还是基础不扎实的原因,很明显的一点就是这里使用二维vector, 开始的时候我竟然没有给ans分配空间,然后直接push_back,
导致RE到死。这点是必须引起注意的!附上代码: 1 /** 2 * Definition for binary ....
分类:
其他好文 时间:
2014-05-08 18:00:37
阅读次数:
292
sharepoint学习笔记汇总
http://blog.csdn.net/qq873113580/article/details/20390149
protected void Button1_Click(object sender, EventArgs e)
{
using (SPSite site = new SPSite("http:...
分类:
其他好文 时间:
2014-05-08 17:13:44
阅读次数:
254
Sencha removed the refreshFn from the pullrefresh plugin in ST 2.2. Here is an user extension with gives the old
functionality back to you.
/**
* This user extension gives st 2.3.0 Pullrefresh the...
分类:
其他好文 时间:
2014-05-08 16:15:05
阅读次数:
390
一、mongodump/mongorestore方式使用场景:数据库导出指定collection,无法手工修改导出文件(二进制)允许条件:数据库原始collection导入操作前可以被删除(处理方式:插入)或者保留(处理方式:删除然后插入)导出数据格式:二进制类型,不可手工修改1.备份数据库指定colle..
分类:
数据库 时间:
2014-05-08 11:04:26
阅读次数:
361
题目链接Given a collection of intervals, merge all
overlapping intervals.For example, Given [1,3],[2,6],[8,10],[15,18], return
[1,6],[8,10],[15,18].对若干...
分类:
其他好文 时间:
2014-05-08 05:21:42
阅读次数:
334
背景
所有集合类都位于java.util包下。集合中只能保存对象(保存对象的引用变量)。当我们把一个对象放入集合中后,系统会把所有集合元素都当成Object类的实例进行处理。Java的集合类主要由两个接口派生而出:Collection和Map,Collection和Map是Java集合框架的根接口,...
分类:
编程语言 时间:
2014-05-07 10:48:18
阅读次数:
528
最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
object Solution {
def solution(A: Array[Int]): Int = {
// write your code in Scala 2.10
// sort
scala.uti...
分类:
其他好文 时间:
2014-05-07 04:20:38
阅读次数:
352
Last seen only a couple of years back, this
approaching discharge of theJordan 6 Carminewill arrive just like they did
included in the 2008 Countdown ...
分类:
其他好文 时间:
2014-05-07 01:50:27
阅读次数:
264