GBase 8a在扩容操作中,当所有表已经全部重分布到新的分布策略distribution以后,老的distribution就可以用refreshnodedatamap drop删除了。 但如果此时有些表存在event,且使用的老的策略,则会出现这个错误:Can not drop nodedatamap EventLog is using distribution。此时需要将原有的event处理完成才可以继续操作。
[gbase@rh6-1 gcinstall_43R33]$ gcadmin rmdmlstorageevent 02 [gbase@rh6-1 gcinstall_43R33]$ gcadmin CLUSTER STATE: ACTIVE CLUSTER MODE: NORMAL================================================================= | GBASE COORDINATOR CLUSTER INFORMATION | ================================================================= | NodeName | IpAddress |gcware |gcluster |DataState | ----------------------------------------------------------------- | coordinator1 |10.0.2.201 | OPEN | OPEN |0| ----------------------------------------------------------------- ============================================================= | GBASE DATA CLUSTER INFORMATION | ============================================================= |NodeName | IpAddress |gnode |syncserver |DataState | ------------------------------------------------------------- | node1 |10.0.2.201 | OPEN | OPEN |0| ------------------------------------------------------------- | node2 |10.0.2.202 | OPEN | OPEN |0| -------------------------------------------------------------
重新删除旧的分布策略成功
gbase> refreshnodedatamap drop 1; Query OK, 0 rows affected (Elapsed: 00:00:04.64)gbase> ^CAborted [gbase@rh6-1 gcluster]$ gcadmin rmdistribution 1 cluster distribution ID [1] it will be removed now please ensure this is ok, input y or n: y gcadmin remove distribution [1] success [gbase@rh6-1 gcluster]$