tikv-ctl

1、只编译tikv,不编译pd,可以实现Java客户端读写吗
2、编译tikv之后,输入tikv-ctl命令行显示未找到命令,需要怎么解决。

tikv 必须有 PD 才能工作…

1、可以查一下RawKV的用法,但是要结合pd一起
2、tikv-ctl和tikv-server是分开的,要单独编译tikv-ctl。https://github.com/tikv/tikv/tree/master/cmd

编译tikv的时候在target/debug/中生成了tikv-ctl和tikv-ctl.d,这个是代表编译完成了吗,然后运行cargo run会显示有tikv-ctl和tikv-server,然后运行tikv-ctl的命令行就显示为找到命令行,请问是少了哪一步吗,还是哪里没有编译成功呢。

请问一下,git clone访问不到pd.git有什么好的解决办法吗,代理什么的都试过了,还是会报错。

Compiling tikv-ctl v0.0.1 (/home/yue/tikv/cmd/tikv-ctl)
Finished dev [unoptimized] target(s) in 5m 55s
[root@localhost tikv-ctl]# tikv-ctl --to-escaped 0xaaff
bash: tikv-ctl: 未找到命令…

拉到 gitee,在git clone…

你试试./tikv-ctl --to-escaped 0xaaff

git报错原因是啥

刚试了一下拉pd的仓库,确实有不稳定的情况,多试几次就好了

heao@LAPTOP-R23HQTUJ MINGW64 /e/heao/git
$ git clone https://github.com/tikv/pd
Cloning into 'pd'...
fatal: unable to access 'https://github.com/tikv/pd/': Failed to connect to github.com port 443 after 21053 ms: Couldn't connect to server

heao@LAPTOP-R23HQTUJ MINGW64 /e/heao/git
$ git clone https://github.com/tikv/pd
Cloning into 'pd'...
fatal: unable to access 'https://github.com/tikv/pd/': Failed to connect to github.com port 443 after 21119 ms: Couldn't connect to server

heao@LAPTOP-R23HQTUJ MINGW64 /e/heao/git
$ git clone https://github.com/tikv/pd
Cloning into 'pd'...
remote: Enumerating objects: 55856, done.
remote: Counting objects: 100% (363/363), done.
remote: Compressing objects: 100% (277/277), done.
remote: Total 55856 (delta 138), reused 195 (delta 69), pack-reused 55493
Receiving objects: 100% (55856/55856), 34.56 MiB | 582.00 KiB/s, done.
Resolving deltas: 100% (39211/39211), done.

[yue@localhost ~]$ git clone https://github.com/tikv/pd
正克隆到 ‘pd’…
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly
[yue@localhost ~]$ git clone https://github.com/tikv/pd
正克隆到 ‘pd’…
fatal: unable to access ‘https://github.com/tikv/pd/’: Failed connect to github.com:443; Connection refused
[yue@localhost ~]$ git clone https://github.com/tikv/pd
正克隆到 ‘pd’…
fatal: unable to access ‘https://github.com/tikv/pd/’: Failed connect to github.com:443; Connection refused
[yue@localhost ~]$ git clone https://github.com/tikv/pd
正克隆到 ‘pd’…
fatal: unable to access ‘https://github.com/tikv/pd/’: Failed connect to github.com:443; Connection refused
[yue@localhost ~]$ git clone https://github.com/tikv/pd
正克隆到 ‘pd’…
fatal: unable to access ‘https://github.com/tikv/pd/’: Failed connect to github.com:443; Connection refused
[yue@localhost ~]$

请问还有什么其他办法吗

git clone https://ghproxy.com/https://github.com/tikv/pd
github地址有时候访问有问题,加个代理就好了

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。