1. 整体架构 2. Standalone cluster 模式 3. Driver的运行流程 ...
分类:
其他好文 时间:
2020-03-31 14:37:16
阅读次数:
82
package t1; import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import java.util.Timer;import java.util.TimerTask; publi ...
分类:
其他好文 时间:
2020-03-31 10:50:09
阅读次数:
104
ETCd nodes:-1 etcd用于存储Kubernetes cluster中所有的pods / nodes状态的key/value信息,同时提供高可用cluster的特性,生产环境一般提供3到5个etcd nodes以保证一致性协调服务; etcd集群内部通过Raft一致性算法,类似于ZooK ...
分类:
其他好文 时间:
2020-03-31 10:48:27
阅读次数:
84
hashmap、hashtable、concurrenthashmap(hash三件套,说了10分钟) hash扩容。给定一个长度为1000的hashmap,存放900个元素会不会扩容、750个呢? ThreadLocal 原理 线程池原理(参数、执行过程、拒绝策略) 写了一个BlockingQue ...
分类:
编程语言 时间:
2020-03-30 16:31:54
阅读次数:
90
函数节流有个毛病,就是最后一次事件执行后,如果距离上一次事件执行不到规定时间,那么最后一次事件就不会执行,解决方法就是把事件函数节流和防抖结合在一起 function throlle(callback,delay){ let startTime=0; let timer=null; return f ...
分类:
其他好文 时间:
2020-03-29 18:01:41
阅读次数:
97
1、spring介绍 (1)spring与三层架构的关系: spring负责管理项目中的所有对象,是一个一站式的框架,容器中的对象决定了spring的功能。 (2)特点: 是一个开源框架 轻量级(与EJB对比),依赖资源少,消耗的资源少 (3)分层: web层:struts、SpringMVC se ...
分类:
编程语言 时间:
2020-03-29 11:11:38
阅读次数:
122
题目 When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A “s ...
分类:
其他好文 时间:
2020-03-28 23:13:05
阅读次数:
76
版本对照 1、在application.yml中添加配置 spring: data: elasticsearch: repositories: enabled: true #多实例集群扩展时需要配置以下两个参数 #cluster-name: datab-search #cluster-nodes: ...
分类:
编程语言 时间:
2020-03-28 19:52:38
阅读次数:
89
转自:https://www.cnblogs.com/hellovenus/p/qt_thread_timer.html Qt——线程与定时器 一、定时器QTimer类 The QTimer class provides repetitive and single-shot timers. The ...
分类:
编程语言 时间:
2020-03-28 16:15:45
阅读次数:
82
sklearn PAI:from sklearn.cluster import KMeans 聚类的原理 评价指标:轮廓系数,一般[-1,1]之间,一般超过0-0.1聚类效果已经十分不错 from sklearn.cluster import KMeans # K-means PAI import ...
分类:
其他好文 时间:
2020-03-27 12:47:49
阅读次数:
64