- 博客(2)
- 收藏
- 关注
原创 2021-02-23
常用时间处理 1.获取当前时间往后的某一天 private final static long ZERO_TIME = 1587916800000L; public static Date getFutureTime(long timestamp, int period) { long currentDayStamp = (timestamp - ZERO_TIME) / DAY * DAY + ZERO_TIME; return new Date(currentDay
2021-02-23 14:40:56 48
原创 kafka parition 分配
同一个group内一个甚至多个consumer的partition分配情况, 获取当前group下对应的topic的consumer数量consumersForTopic topic对应的parition总数量numPartitionsForTopic N=numPartitionsForTopic/consumersForTopic 将partition 分给每个consumer 考...
2018-12-03 14:24:04 123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人