douxiza9868 2017-07-20 12:28
浏览 46

将数据从mysql加载到Redis集群时出错

i'm new to both Redis and Go Language, so just bear with me. I'm trying to load some mysql data to the redis cluster.

I'm using this code from gitHub:Go program to load mysql data to redis

Using this, I'm able to load mysql data to a redis instance that is acting as a standalone redis server(127.0.0.1:7000).

But when i'm trying to load the same data to the nodes in a redis cluster(having 3 masters(127.0.0.1:7000,7001,7002)), i'm getting the following exception:

hmset error: MOVED 12937 127.0.0.1:7001

My redis.config for node running on port 7000:

port 7000
cluster-enabled yes
cluster-config-file nodes-7000.conf
cluster-node-timeout 5000
appendonly yes
protected-mode no

Can somebody suggest why this is happening? Thanks in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 matlab(相关搜索:紧聚焦)
    • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
    • ¥15 路易威登官网 里边的参数逆向
    • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
    • ¥50 需求一个up主付费课程
    • ¥20 模型在y分布之外的数据上预测能力不好如何解决
    • ¥15 processing提取音乐节奏
    • ¥15 gg加速器加速游戏时,提示不是x86架构
    • ¥15 python按要求编写程序
    • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入