上一页 1 ··· 123 124 125 126 127 128 129 130 131 ··· 235 下一页
摘要: 1. scala初识spark由scala编写,要解析scala,首先要对scala有基本的了解。1.1 class vs objectA class is a blueprint for objects. Once you define a class, you can create object... 阅读全文
posted @ 2016-01-19 14:27 一天不进步,就是退步 阅读(1689) 评论(0) 推荐(0)
摘要: 原文地址:http://www.theguardian.com/technology/2016/jan/15/how-to-use-search-like-a-pro-10-tips-and-tricks-for-google-and-beyondSearch enginesare pretty g... 阅读全文
posted @ 2016-01-17 09:56 一天不进步,就是退步 阅读(337) 评论(0) 推荐(0)
摘要: 从两方面来阐述spark的组件,一个是宏观上,一个是微观上。1. spark组件要分析spark的源码,首先要了解spark是如何工作的。spark的组件:了解其工作过程先要了解基本概念官方罗列了一些概念:TermMeaningApplicationUser program built on Spa... 阅读全文
posted @ 2016-01-16 17:28 一天不进步,就是退步 阅读(2826) 评论(0) 推荐(0)
摘要: 工作中用到了apache-spark,想深入了解一下,决定从源码开始。先导入到常用的ide,eclipse吧:准备工作 1. 下载Eclipse:http://scala-ide.org/ 2. 从github上下载源码:https://github.com/apache/spark第一个实验品是S... 阅读全文
posted @ 2016-01-16 13:09 一天不进步,就是退步 阅读(2492) 评论(0) 推荐(0)
摘要: 创建持久节点和临时节点ZooKeeper zk=new ZooKeeper(HOST,CLIENT_SESSION_TIMEOUT,new Watcher(){ @Override public void process(WatchedEvent even... 阅读全文
posted @ 2016-01-13 15:23 一天不进步,就是退步 阅读(729) 评论(0) 推荐(0)
摘要: 原文地址:http://zhaoshijie.iteye.com/blog/1974682应用场景:很多时候我们想要在某个类加载完毕时干某件事情,但是使用了spring管理对象,我们这个类引用了其他类(可能是更复杂的关联),所以当我们去使用这个类做事情时发现包空指针错误,这是因为我们这个类有可能已经... 阅读全文
posted @ 2016-01-12 17:50 一天不进步,就是退步 阅读(4851) 评论(0) 推荐(0)
摘要: 原文地址:http://adolgarev.blogspot.com/2013/12/lets-do-our-own-full-blown-http-server.htmlSometimes servlets just doesn't fit you, sometimes you need to s... 阅读全文
posted @ 2016-01-12 17:17 一天不进步,就是退步 阅读(860) 评论(0) 推荐(0)
摘要: 原文地址:http://www.infoq.com/cn/articles/yhd-11-11-high-availability-and-high-performance1.背景1.1三高是电商核心交易系统的基础电商核心交易系统有很多特点,如分布式、高可扩展等,在众多特性中,高可用、高并发、高性能... 阅读全文
posted @ 2016-01-12 13:38 一天不进步,就是退步 阅读(2791) 评论(0) 推荐(0)
摘要: netty4线程模型ServerBootstrap http示例 // Configure the server. EventLoopGroup bossGroup = new EpollEventLoopGroup(1); EventLoopGroup w... 阅读全文
posted @ 2016-01-11 18:14 一天不进步,就是退步 阅读(2017) 评论(0) 推荐(0)
摘要: 1. 检测jdk版本 @SuppressWarnings("LoopStatementThatDoesntLoop") private static int javaVersion0() { int javaVersion; // Not really a loop... 阅读全文
posted @ 2016-01-11 17:25 一天不进步,就是退步 阅读(1895) 评论(0) 推荐(0)
上一页 1 ··· 123 124 125 126 127 128 129 130 131 ··· 235 下一页