会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
INnoVation-V2
首页
新随笔
管理
2025年6月10日
C语言格式化输出,消除上一行
摘要: 当需要在同一行刷新显示时,比如持续显示当前温度,可使用如下函数 void clear_last_line() { printf("\033[A"); printf("\033[K"); }
阅读全文
posted @ 2025-06-10 17:55 INnoVation-V2
阅读(2)
评论(0)
推荐(0)
2024年12月8日
Spark 问题集
摘要: 1. 包无法访问 错误信息 java.lang.IllegalAccessError: class org.apache.spark.storage.StorageUtils$ (in unnamed module @0x2aceadd4) cannot access class sun.nio.c
阅读全文
posted @ 2024-12-08 01:35 INnoVation-V2
阅读(175)
评论(0)
推荐(0)
2024年11月28日
Macos Clion 找不到头文件
摘要: Macos从15升级16后,Clion打开报错 Cannot find file 'iostream' in search paths: / Library/ Developer/ CommandLineTools/ usr/ include/ c++/ v1 / Library/ Develope
阅读全文
posted @ 2024-11-28 14:36 INnoVation-V2
阅读(332)
评论(0)
推荐(0)
2024年11月18日
Macos自定义Docker Ubuntu镜像
摘要: Macos自定义Docker Ubuntu镜像 下载镜像 docker pull ubuntu:24.04 启动 docker run -it ubuntu:24.04 /bin/bash 配置镜像源 见底部 Q1.Arm64, Macos配置镜像源 安装ip指令 见底部 Q2.报错ip:comma
阅读全文
posted @ 2024-11-18 23:55 INnoVation-V2
阅读(68)
评论(0)
推荐(0)
2024年9月27日
Lab4 记录
摘要: Part A:无快照的KVServers KVServer整体结构如下 每个KvServer对应一个Raft Server,该Raft Server可能是Leader或Follower Client向KVServer发送请求,如果该KVServer对应的Raft Server不是Leader,直接返
阅读全文
posted @ 2024-09-27 00:34 INnoVation-V2
阅读(50)
评论(0)
推荐(0)
Lab 4: Fault-tolerant Key/Value Service
摘要: Lab 4: Fault-tolerant Key/Value Service 一、介绍 本次Lab将使用Lab3的Raft库构建容错键/值存储服务。您的KV服务将是一个复制状态机,由多个Server组成,每个Server维护一个KV数据库,就像Lab2一样,使用Raft保证Server状态一致。只
阅读全文
posted @ 2024-09-27 00:32 INnoVation-V2
阅读(54)
评论(0)
推荐(0)
2024年9月24日
Raft总结
摘要: Raft算法 State 所有server都有的持久化状态 先存储,然后响应RPC currentTerm 当前任期,初始为0,单调递增 votedFor 当前任期投票给谁了,没有就是null log[] 日志条目,每个条目都包含命令、Leader收到条目时的任期,第一个条目的index为1 所有s
阅读全文
posted @ 2024-09-24 23:42 INnoVation-V2
阅读(41)
评论(0)
推荐(0)
Lab3 记录
摘要: Part 3A: leader election 1.选举主要流程 新服务器加入集群 服务器在启动时状态是Follower。只要持续接收到Leader或Candidate的心跳信息,就继续保持Follower状态。 开始选举 每个Server都有一个随机的选举超时时间,选举超时在一个固定区间内随机选
阅读全文
posted @ 2024-09-24 23:41 INnoVation-V2
阅读(53)
评论(0)
推荐(0)
Lab3 Raft
摘要: Lab3 Raft 1.Getting Started 代码位置: 基础框架代码位置:src/raft/raft.go 测试代码:src/raft/test_test.go 建议测试时使用-race 2.The code 向raft/raft.go添加代码来实现Raft。 实现必须支持以下接口 //
阅读全文
posted @ 2024-09-24 23:41 INnoVation-V2
阅读(83)
评论(0)
推荐(0)
2024年9月1日
Tmux使用介绍
摘要: Tmux使用介绍 原文地址 一、安装 # Ubuntu 或 Debian sudo apt-get install tmux # CentOS 或 Fedora sudo yum install tmux # Mac brew install tmux 启动与退出 直接在终端中键入tmux指令,即可
阅读全文
posted @ 2024-09-01 14:29 INnoVation-V2
阅读(107)
评论(0)
推荐(0)
下一页
公告