redis-port
redis-port copied to clipboard
使用redis-port迁移集群版redis数据到主从版redis报错
请问下这个工具支持实时迁移redis集群版数据到主从版吗,redis版本2.8,谢谢!
用最新的 branch 上,理论上是支持的,因为我把他拆成了 pipeline 的普通指令。
@spinlock-pony 好的,谢谢,我试试,是redis-4.x这个branch吗?
对的~
@spinlock-pony 有没有编译文档,我make报了一些错,解决了些,但是还有报了如下错误:
go build -tags "use_jemalloc" -o bin/redis-sync
cmd/version.go cmd/flags.go cmd/libs.go cmd/iolibs.go cmd/sync.go
cmd/libs.go:18:2: cannot find package "github.com/CodisLabs/codis/pkg/proxy/redis" in any of:
/usr/lib/golang/src/github.com/CodisLabs/codis/pkg/proxy/redis (from $GOROOT)
/root/go/src/github.com/CodisLabs/codis/pkg/proxy/redis (from $GOPATH)
cmd/libs.go:19:2: cannot find package "github.com/CodisLabs/codis/pkg/utils/bufio2" in any of:
/usr/lib/golang/src/github.com/CodisLabs/codis/pkg/utils/bufio2 (from $GOROOT)
/root/go/src/github.com/CodisLabs/codis/pkg/utils/bufio2 (from $GOPATH)
cmd/flags.go:11:2: cannot find package "github.com/CodisLabs/codis/pkg/utils/bytesize" in any of:
/usr/lib/golang/src/github.com/CodisLabs/codis/pkg/utils/bytesize (from $GOROOT)
/root/go/src/github.com/CodisLabs/codis/pkg/utils/bytesize (from $GOPATH)
cmd/flags.go:12:2: cannot find package "github.com/CodisLabs/codis/pkg/utils/log" in any of:
/usr/lib/golang/src/github.com/CodisLabs/codis/pkg/utils/log (from $GOROOT)
/root/go/src/github.com/CodisLabs/codis/pkg/utils/log (from $GOPATH)
cmd/libs.go:21:2: cannot find package "github.com/CodisLabs/codis/pkg/utils/sync2/atomic2" in any of:
/usr/lib/golang/src/github.com/CodisLabs/codis/pkg/utils/sync2/atomic2 (from $GOROOT)
/root/go/src/github.com/CodisLabs/codis/pkg/utils/sync2/atomic2 (from $GOPATH)
cmd/sync.go:16:2: cannot find package "github.com/CodisLabs/redis-port/pkg/libs/pipe" in any of:
/usr/lib/golang/src/github.com/CodisLabs/redis-port/pkg/libs/pipe (from $GOROOT)
/root/go/src/github.com/CodisLabs/redis-port/pkg/libs/pipe (from $GOPATH)
cmd/libs.go:23:2: cannot find package "github.com/CodisLabs/redis-port/pkg/rdb" in any of:
/usr/lib/golang/src/github.com/CodisLabs/redis-port/pkg/rdb (from $GOROOT)
/root/go/src/github.com/CodisLabs/redis-port/pkg/rdb (from $GOPATH)
cmd/flags.go:14:2: cannot find package "github.com/docopt/docopt-go" in any of:
/usr/lib/golang/src/github.com/docopt/docopt-go (from $GOROOT)
/root/go/src/github.com/docopt/docopt-go (from $GOPATH)
cmd/libs.go:25:2: cannot find package "github.com/garyburd/redigo/redis" in any of:
/usr/lib/golang/src/github.com/garyburd/redigo/redis (from $GOROOT)
/root/go/src/github.com/garyburd/redigo/redis (from $GOPATH)
make: *** [redis-sync] Error 1
@spinlock-pony 你这个branch下面git clone下来这个目录third_party下面都是空的,make会报错,需要手动下下载相关源码放到响应目录才行,对go不熟悉,报的上面我发的错误也不知道是什么原因
跟 go 没关系
Git submodule init
zhouxt [email protected]于2018年5月28日 周一22:00写道:
@spinlock-pony https://github.com/spinlock-pony 你这个branch下面git clone下来这个目录third_party下面都是空的,make会报错,需要手动下下载相关源码放到响应目录才行,对go不熟悉,报的上面我发的错误也不知道是什么原因
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CodisLabs/redis-port/issues/52#issuecomment-392535074, or mute the thread https://github.com/notifications/unsubscribe-auth/AhnaS1SkbXV0Kmixy6u9Asehe5lSfczbks5t3AMagaJpZM4UPzQT .
@spinlock-pony 你好,有没有编译的文档或者说明?
@zhouxt 暂时木有。~
:cry: 暂时文档还没有更新。 你可以试试看 git submodule init & git submodule update ,或者自己下载最新的 redis 代码放到对应的目录。