控制namenode检查点发生的频率。环境:OS:Centos 6.5 x64 &
Soft:Hadoop 1.2.11、修改core-site.xml,设置参数。 fs.checkpoint.period
1802、重启集群,查看namenode下文件更新频率,每隔180秒更新一次。[huser@...
分类:
其他好文 时间:
2014-05-06 00:26:48
阅读次数:
429
一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument
xml=new
XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/boo...
分类:
其他好文 时间:
2014-05-05 23:59:47
阅读次数:
347
1.最近用hibernate
学会很多知识,总结如下:(1)数据库表格已经设置默认值,在进行数据插入的时候,bean里面不赋值的话,插入之后该字段依旧是null是因为hibernate默认插入和更新所有字段,如果某些字段不需要操作,需要配置下(i)xml文件配置方式:
加入insert="f...
分类:
系统相关 时间:
2014-05-05 23:52:08
阅读次数:
563
第一节、MVC以及Struts2简介 第二节、Action生命周期以及接收表单数据
第三节、Struts2配置以及Struts.xml详解 Struts2 主要配置文件 Web.xml 设置过滤器以及annotation初始化参数
Struts.xml 主配置文件 Struts.properties...
分类:
其他好文 时间:
2014-05-05 23:31:13
阅读次数:
266
在hibernate中使用annotation非常方便我们的web开发.下面对比一下使用annotation和和不使用之间的差别吧. 首先,无论你是否使用annotation,都必须有hibernate的配置文件(hibernate.cfg.xml),这个在hibernate的自带的手册中能找到,....
分类:
系统相关 时间:
2014-05-05 23:15:49
阅读次数:
443
Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given [100, 4,
200, 1, 3, 2],The longest...
分类:
其他好文 时间:
2014-05-05 23:01:41
阅读次数:
374
1.实现boost库xml基本操作2.解决boost对xml中中文乱码问题3.实现普通字符串和宽字符串的傻瓜切换(模仿tchar.h)4.代码运行环境为VS2010,需要导入boost库才能正常运行5.VS2010运行时可能会发生错误。例如:cl.exe
或者 cvtres.exe 报错。 解决办法...
分类:
其他好文 时间:
2014-05-05 22:57:21
阅读次数:
541
ismember 判断A中的元素在B中有没有出现 LIA = ismember(A,B)
for arrays A and B returns an array of the samesize as A containing true where
the elements of A are i...
分类:
其他好文 时间:
2014-05-05 22:25:11
阅读次数:
317
1. introductionfrom numpy import
*random.rand(4,4)#array to matrixrandMat=mat(randon.rand(4,4))#matrix
inverseIvrandMat=randMat.I#indentity matrixeye(...
分类:
编程语言 时间:
2014-05-05 22:24:10
阅读次数:
336
struts 2 跳转类型
1.dispatcher
dispatcher 为默认跳转类型,用于返回一个视图资源
xml代码 :
/main.jsp
/main.jsp
以上写法使用了两个默认,其完整的写法为:
/maini.jsp
用于页面转发,页面跳转过程一直是同一个线程,Action中的数据一直保存在。
locatio...
分类:
其他好文 时间:
2014-05-05 13:11:31
阅读次数:
311