一、概念和基本架构 1.1 kafka介绍 Kafka在一个或多个可以跨越多个数据中心的服务器上作为集群运行。Kafka集群中按照主题分类管理,一个主题可以有多个分区,一个分区可以有多个副本分区。每个记录由一个键,一个值和一个时间戳组成。Kafka只有消息的拉取,没有推送,可以通过轮询实现消息的推送 ...
分类:
其他好文 时间:
2021-03-26 15:32:23
阅读次数:
0
1、重写commit,删除大文件 git filter-branch --force --index-filter "git rm -rf --cached --ignore-unmatch CPT_0707_ao/temp_past/temp2/deltap.csv" --prune-empty ...
分类:
Web程序 时间:
2021-03-26 15:31:53
阅读次数:
0
示例代码如下: import multiprocessing import time import json def buy_ticket(lock): # 1.获取余票 time.sleep(1) lock.acquire() data = json.load(open('ticket.json' ...
分类:
编程语言 时间:
2021-03-26 15:31:36
阅读次数:
0
1、动态编译 动态编译,简单来说就是在Java程序运行时编译源代码。 从JDK1.6开始,引入了Java代码重写过的编译器接口,使得我们可以在运行时编译Java源代码,然后再通过类加载器将编译好的类加载进JVM,这种在运行时编译代码的操作就叫做动态编译。 静态编译:编译时就把所有用到的Java代码全 ...
分类:
编程语言 时间:
2021-03-26 15:31:17
阅读次数:
0
1.通过System.Reflection.Assembly 的一些方法得到想要创建的对象的type 2.调用Activator.CreateInstance(type,args) ,创建相应的instance ...
分类:
其他好文 时间:
2021-03-26 15:31:05
阅读次数:
0
attribute:html标签的属性 <div class="left" aa="bb" id="div1" checked="checked"></div> div1 = document.getElementById("div1"); div1.getAttribute("checked"); ...
分类:
编程语言 时间:
2021-03-26 15:29:51
阅读次数:
0
问题 给定不同面额的硬币和一个总金额。写出函数来计算可以凑成总金额的硬币组合数。假设每一种面额的硬币有无限个。 示例 输入: amount = 5, coins = [1, 2, 5] 输出: 4 解释: 有四种方式可以凑成总金额: 5=5 5=2+2+1 5=2+1+1+1 5=1+1+1+1+1 ...
分类:
其他好文 时间:
2021-03-26 15:29:36
阅读次数:
0
declare @i int set @i=5 while @i<150 begin INSERT INTO [dbo].[SysRole] VALUES (CONVERT(varchar(50), @i),'测试'+CONVERT(varchar(50), @i),1,1,NULL,0,0,NUL ...
分类:
数据库 时间:
2021-03-26 15:28:42
阅读次数:
0
function Checkexeisrunning(ename:string):Boolean; var hwd:hwnd; scr:array [0..254] of Char; begin Result:=False; hwd:=GetWindow(Application.Handle,GW_ ...
分类:
其他好文 时间:
2021-03-26 15:28:08
阅读次数:
0
Setup Check our AndroidCompile wiki page, especially for build dependencies. Here are the essential points: On Debian/Ubuntu, install the required dep ...
分类:
系统相关 时间:
2021-03-26 15:25:05
阅读次数:
0