Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用redis-port迁移集群版redis数据到主从版redis报错 #52

Open
zhouxt opened this issue May 28, 2018 · 8 comments
Open

使用redis-port迁移集群版redis数据到主从版redis报错 #52

zhouxt opened this issue May 28, 2018 · 8 comments

Comments

@zhouxt
Copy link

zhouxt commented May 28, 2018

请问下这个工具支持实时迁移redis集群版数据到主从版吗,redis版本2.8,谢谢!

@spinlock-pony
Copy link

spinlock-pony commented May 28, 2018

用最新的 branch 上,理论上是支持的,因为我把他拆成了 pipeline 的普通指令。

@zhouxt
Copy link
Author

zhouxt commented May 28, 2018

@spinlock-pony 好的,谢谢,我试试,是redis-4.x这个branch吗?

@spinlock-pony
Copy link

对的~

@zhouxt
Copy link
Author

zhouxt commented May 28, 2018

@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

@zhouxt
Copy link
Author

zhouxt commented May 28, 2018

@spinlock-pony 你这个branch下面git clone下来这个目录third_party下面都是空的,make会报错,需要手动下下载相关源码放到响应目录才行,对go不熟悉,报的上面我发的错误也不知道是什么原因

@spinlock-pony
Copy link

spinlock-pony commented May 28, 2018 via email

@zhouxt
Copy link
Author

zhouxt commented May 29, 2018

@spinlock-pony 你好,有没有编译的文档或者说明?

@spinlock-pony
Copy link

@zhouxt 暂时木有。~

😢 暂时文档还没有更新。
你可以试试看 git submodule init & git submodule update ,或者自己下载最新的 redis 代码放到对应的目录。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants