-
Notifications
You must be signed in to change notification settings - Fork 37
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
cluster create error #77
Comments
thank you for your[@otheng03 ] answer execute cm_start and install is fine... but other error occur execute batch log[localhost] Check Local Binary [ttp@localhost] copy_binary begin zookeeper log2016/07/12 14:27:48.905 ERR 042 CM -ERR pgs does not exist. cluster_redis/pgs:50 additional error[ttp@localhost] Executing task 'make_remote_path' [ttp@localhost] Start Gateway |
|
thanks for your answer here is my config of mgmt $vi nbase-arc/mgmt/config/conf_mnode.py import os CMCONF_MASTER_IP = "redis1" Local binary pathLOCAL_BINARY_PATH = '~/nbase-arc/bin' MigrationMIN_TIME_TO_ATTEMPT_MIG2PC = 0.05 # Minimum time to try mig2pc in second RemoteUSERNAME = "user" REMOTE_NBASE_ARC = '~/nbase-arc' ShellARC_BASH_PROFILE = 'bash.nbase-arc' |
|
i found new error when make test after get git file [cc: error: ../../smr/smr/libsmr.a: No such file or directory] [user@redis_server1 src]$ git clone https://github.com/naver/nbase-arc.git config.status: executing include/jemalloc/jemalloc.h commandsjemalloc version : 3.6.0-0-g46c0af68bd248b04df75e4f92d5fb804c3d75340 CC : gcc XSLTPROC : /usr/bin/xsltproc PREFIX : /usr/local srcroot : JEMALLOC_PREFIX : je_ tls : 1cd jemalloc && make CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS="" lib/libjemalloc.a Is it Okay? |
system : centos 7.1 x64 / Linux redis1 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
fab main
#4 cluster create
Cluster name : cluster
PG count : 4
Replication number : 2
PGS Physical Machine list([["PM_NAME PM_IP", "PM_NAME PM_IP"], ["PM_NAME PM_IP", "PM_NAME PM_IP"], ...]) [["redis1 10.0.0.151", "redis2 10.0.0.152"]]
Gateway Physical Machine list([PM_NAME PM_IP, PM_NAME PM_IP, ...]) ["redis1 10.0.0.151", "redis2 10.0.0.152"]
Cronsave number 2
[user@10.0.0.151] Executing task 'get_ports'
[user@10.0.0.151] Get using ports
[user@10.0.0.151] Login password for 'user':
[user@10.0.0.152] Executing task 'get_ports'
[user@10.0.0.152] Get using ports
[user@10.0.0.151] Executing task 'get_ports'
[user@10.0.0.151] Get using ports
[user@10.0.0.152] Executing task 'get_ports'
[user@10.0.0.152] Get using ports
Print script? [Y/n]
[SCRIPT]
CLUSTER:
cluster_add cluster 0:1
GW:
cluster 1 redis1 10.0.0.151 6000
cluster 2 redis2 10.0.0.152 6000
PG:
pg_add cluster 0
pg_add cluster 1
pg_add cluster 2
pg_add cluster 3
PN PG MAP:
slot_set_pg cluster 0:2047 0
slot_set_pg cluster 2048:4095 1
slot_set_pg cluster 4096:6143 2
slot_set_pg cluster 6144:8191 3
PGS:
cluster 0 0 redis1 10.0.0.151 7000
cluster 50 0 redis2 10.0.0.152 7000
cluster 1 1 redis1 10.0.0.151 7010
cluster 51 1 redis2 10.0.0.152 7010
cluster 2 2 redis1 10.0.0.151 7020
cluster 52 2 redis2 10.0.0.152 7020
cluster 3 3 redis1 10.0.0.151 7030
cluster 53 3 redis2 10.0.0.152 7030
Print configuration? [Y/n]
[GW INFORMATION]
+-------+------------------------------------------+--------+
| GW_ID | PM | PORT |
+-------+------------------------------------------+--------+
| 1 | ['redis1', '10.0.0.151'] | 6000 |
| 2 | ['redis2', '10.0.0.152'] | 6000 |
+-------+------------------------------------------+--------+
[PG INFORMATION]
+-------+--------------+-----------+
| PG_ID | SLOT | SLOT SIZE |
+-------+--------------+-----------+
| 0 | 0 2047 | 2048 |
| 1 | 2048 4095 | 2048 |
| 2 | 4096 6143 | 2048 |
| 3 | 6144 8191 | 2048 |
+-------+--------------+-----------+
[PGS INFORMATION]
+-------+--------+------------------------------------------+--------+
| PG_ID | PGS_ID | PM | PORT |
+-------+--------+------------------------------------------+--------+
| 0 | 0 | ['redis1', '10.0.0.151'] | 7000 |
| 0 | 50 | ['redis2', '10.0.0.152'] | 7000 |
| 1 | 1 | ['redis1', '10.0.0.151'] | 7010 |
| 1 | 51 | ['redis2', '10.0.0.152'] | 7010 |
| 2 | 2 | ['redis1', '10.0.0.151'] | 7020 |
| 2 | 52 | ['redis2', '10.0.0.152'] | 7020 |
| 3 | 3 | ['redis1', '10.0.0.151'] | 7030 |
| 3 | 53 | ['redis2', '10.0.0.152'] | 7030 |
+-------+--------+------------------------------------------+--------+
[PGS INFORMATION, After Arranging locations of masters]
+-------+--------+------------------------------------------+--------+
| PG_ID | PGS_ID | PM | PORT |
+-------+--------+------------------------------------------+--------+
| 0 | 0 | ['redis1', '10.0.0.151'] | 7000 |
| 0 | 50 | ['redis2', '10.0.0.152'] | 7000 |
| 1 | 51 | ['redis2', '10.0.0.152'] | 7010 |
| 2 | 2 | ['redis1', '10.0.0.151'] | 7020 |
| 2 | 52 | ['redis2', '10.0.0.152'] | 7020 |
| 3 | 53 | ['redis2', '10.0.0.152'] | 7030 |
| 1 | 1 | ['redis1', '10.0.0.151'] | 7010 |
| 3 | 3 | ['redis1', '10.0.0.151'] | 7030 |
+-------+--------+------------------------------------------+--------+
[MASTER COUNT]
10.0.0.152 : 2
10.0.0.151 : 2
Create PGS, Continue? [Y/n]
Confirm Mode? [Y/n]
Warning: PM Add fail. cmd:pm_add redis1 10.0.0.151, ret:{"state":"error","msg":"-ERR required state is 2, but 1"}
confmaster error
2016/07/12 10:25:43.836 ERR 016 CM Exception occur while handle request. length: 30, message: "pm_add redis1 10.0.0.151"... com.navercorp.nbasearc.confmaster.ConfMasterException$MgmtStateNotSatisfiedException: -ERR required state is 2, but
The text was updated successfully, but these errors were encountered: