摘要: 1.环境 Jdk:1.6.0_10-rc2 Hadoop:hadoop-1.0.0.tar.gz Eclipse 版本:3.4.0 Hadoop Eclipse 插件 :hadoop-eclipse-plugin-1.0.0.jar 下载地址 操作系统:Windows7 32位 旗舰版2.Eclipse插件配置2.1 把"hadoop-eclipse-plugin-1.0.0.jar"放到Eclipse的目录的"plugins"中(eclipse/plugins),重新启动Eclipse生效 2.2选择Elipse Window菜单下的"Pre 阅读全文
posted @ 2012-05-24 13:01 ITA之路 阅读(181) 评论(0) 推荐(0)
摘要: 近日,软件工程师Ricky Ho的在他的博客里发表了一篇关于MongoDB架构(MongoDB Architecture)的博文,虽然这是一个听起来感觉很宽泛的话题,但是作者在文章中确实对MongoDB由内至外的架构进行了剖析。本文截取了其文章中的几张重点架构示意图进行简要描述。1、MongoDB数据文件内部结构 MongoDB在数据存储上按命名空间来划分,一个Collection是一个命名空间,一个索引也是一个命名空间。 同一个命名空间的数据被分成很多个Extent,Extent之间使用双向链表连接。 在每一个Extent中,保存了具体每一行的数据,这些数据也是通过双向链接来连接的。 每一行 阅读全文
posted @ 2012-05-23 21:56 ITA之路 阅读(178) 评论(0) 推荐(0)
摘要: 原文地址:http://www.cnblogs.com/gpcuster/archive/2010/06/04/1751538.html在这篇文章中,我们默认认为Hadoop环境已经由运维人员配置好直接可以使用。 假设Hadoop的安装目录HADOOP_HOME为/home/admin/hadoop。 启动与关闭 启动Hadoop 1. 进入HADOOP_HOME目录。 2. 执行sh bin/start-all.sh 关闭Hadoop 1. 进入HADOOP_HOME目录。 2. 执行sh bin/stop-all.sh 文件操作 Hadoop使用的是HDFS,能够实现的功能和我们使用的磁盘 阅读全文
posted @ 2012-05-21 17:30 ITA之路 阅读(152) 评论(0) 推荐(0)
摘要: 一:CygWin安装 cygwin1.7.15 下载地址 安装省略、(记得安装ssh) 安装完成后 将usr\sbin目录 加入到path环境变量中二:ssh配置 $ ssh-host-config *** Query: Should privilege separation be used? (yes/no) no *** Query: (Say "no" if it is already installed as a service) (yes/no)yes *** Query: Enter the value of CYGWIN for the daemon: [] 阅读全文
posted @ 2012-05-21 17:25 ITA之路 阅读(251) 评论(0) 推荐(0)
摘要: Result接口定义public interface Result extends Serializable { public void execute(ActionInvocation invocation) throws Exception; }常用Result类图<result-type name="chain" class="com.opensymphony.xwork2.ActionChainResult"/> <result-type name="dispatcher" class="org.a 阅读全文
posted @ 2012-05-19 22:51 ITA之路 阅读(164) 评论(0) 推荐(0)
摘要: StrutsPrepareAndExecuteFilter doFilter方法为请求的入口doFilter方法主要做以下几件事一: 根据配置的常量 设置当前request 字符编码 response国际化Locale信息二: 创建ActionContext数据对象三: 请求处理 1.分析url 根据url 创建ActionMapping对象 这些操作主要由ActionMapper接口实现类完成 2. 执行请求逻辑动作 ①.根据请求映射对象ActionMapping 创建ActionProxy主要由ActionProxyFactory接口完成 ②.执行Action 逻辑(拦截器,Action. 阅读全文
posted @ 2012-05-17 23:25 ITA之路 阅读(168) 评论(0) 推荐(0)
摘要: ConfigurationProvider接口 主要完成struts配置文件 加载 注册过程ConfigurationProvider接口定义public interface ConfigurationProvider extends ContainerProvider, PackageProvider { } ContainerProvider接口定义/** * 容器加载 注册器 */ public interface ContainerProvider { public void destroy(); /** * 初始化阶段调用 * Xm... 阅读全文
posted @ 2012-05-16 23:59 ITA之路 阅读(169) 评论(0) 推荐(0)
摘要: Container容器接口定义public interface Container extends Serializable { /** * Default dependency name. */ String DEFAULT_NAME = "default"; /** * 对当前对象 执行依赖注入 * 引用了@Inject注解的 方法 字段 构造器 参数 * @param o */ void inject(Object o); /** * 创建实例 然后再依赖注入 */ <T> T inject(Class<T... 阅读全文
posted @ 2012-05-16 18:21 ITA之路 阅读(215) 评论(0) 推荐(0)
摘要: StrutsPrepareAndExecuteFilter实现了Filter接口 init方法为初始化入口StrutsPrepareAndExecuteFilter init方法 public void init(FilterConfig filterConfig) throws ServletException { //初始化辅助类 类似一个Delegate InitOperations init = new InitOperations(); try { // FilterHostConfig 封装了FilterConfig参数对象... 阅读全文
posted @ 2012-05-16 18:19 ITA之路 阅读(308) 评论(0) 推荐(0)
摘要: 一:服务端web.xml <!-- DispatcherServlet --> <servlet> <servlet-name>Spring-DispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> & 阅读全文
posted @ 2012-05-13 14:21 ITA之路 阅读(219) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示