mapReduce 的优势在于分布式,这一节记录一个分布式统计的示例,整个过程分为这几步:启动分布式服务、手动分片、导入数据、执行 mapReduce。下面单独说说这几步。 1、启动分布式服务 参考前面的第10节和第11节,不在重复说了。 2、手动分片: sh.enableSharding('tes ...
分类:
数据库 时间:
2019-08-11 23:18:50
阅读次数:
165
var map = new BMap.Map("map"); var point = new BMap.Point(116.404, 39.915); map.centerAndZoom(point, 15); map.enableScrollWheelZoom(); // 开启鼠标滚轮缩放 map ...
分类:
其他好文 时间:
2019-08-05 18:38:25
阅读次数:
113
1.引入jar swaggerConfig.注解使用 3注解使用 user实体类 效果 note: lisi是默认值 ...
分类:
其他好文 时间:
2019-07-27 13:04:40
阅读次数:
93
1、下载源码https://github.com/naver/ngrinder/releases2、导入idea3、修改pom.xml文件:<groupId>net.sf.grinder</groupId><artifactId>grinder</artifactId><version>3.9.1</version4、源码出现报错修
分类:
其他好文 时间:
2019-06-27 09:21:41
阅读次数:
177
MyBatis Generator: 简称MBG,是专门为MyBatis开发者定制的代码生成器,可以快速的根据数据表生成对应的映射文件、接口、以及bean类。支持基本的增删改查,以及QBC风格的条件查询。但是表连接、存储 过程这些复杂的SQL定义需要我们手工编写; 官方文档地址:http://www ...
分类:
其他好文 时间:
2019-06-25 10:30:27
阅读次数:
140
1、maven依赖 maven仓库(https://mvnrepository.com/)搜索springfox 2、springboot集成swagger2 1)创建一个springboot项目,pom.xml引入上面贴出的两个依赖jar; 2)在springboot启动类上加注解@EnableS ...
分类:
其他好文 时间:
2019-06-24 00:39:11
阅读次数:
108
在类名上配置@Componant和@EnableSchedule 在方法名上 ...
分类:
编程语言 时间:
2019-06-19 13:40:08
阅读次数:
94
https://rancher.com/blog/2019/2019-01-17-101-more-kubernetes-security-best-practices/ The CNCF recently released 9 Kubernetes Security Best Practices ...
分类:
Web程序 时间:
2019-06-17 14:14:29
阅读次数:
186
API epoll提供给用户进程的接口有如下四个,本文基于linux 5.1.4源码详细分析每个API具体做了啥工作,通过UML时序图理清内核内部的函数调用关系。 1. int epoll_create1(int size); 创建一个epfd句柄,size为0时等价于int epoll_creat ...
分类:
系统相关 时间:
2019-06-08 01:08:51
阅读次数:
148
ReaderT is a Monad Transformer that wraps a given Monad with a Reader. This allows the interface of a Reader that enables the composition of computati ...
分类:
其他好文 时间:
2019-05-31 23:33:10
阅读次数:
110