Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
In rsgroup, allow to move tables that do not exist. This can cause dirty data.
base(main):004:0* move_rsgroup_tables 'rs1',['ttt'] hbase(main):005:0> get_rsgroup 'rs1' GROUP INFORMATION Servers: 192.168.12.65:16020 Tables: ttt
I think it should be like this. As follows:
hbase(main):001:0> move_rsgroup_tables 'rs1',['ttt'] ERROR: org.apache.hadoop.hbase.constraint.ConstraintException: Source group is null for table ttt ,table must exist. at org.apache.hadoop.hbase.rsgroup.RSGroupAdminServer.moveTables(RSGroupAdminServer.java:265) at org.apache.hadoop.hbase.rsgroup.RSGroupAdminEndpoint.moveTables(RSGroupAdminEndpoint.java:174) at org.apache.hadoop.hbase.protobuf.generated.RSGroupAdminProtos$RSGroupAdminService.callMethod(RSGroupAdminProtos.java:11141) at org.apache.hadoop.hbase.master.MasterRpcServices.execMasterService(MasterRpcServices.java:675) at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:52454) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2135) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:107) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108) at java.lang.Thread.run(Thread.java:745) Here is some help for this command: Reassign tables from one group to another. hbase> move_rsgroup_tables 'dest',['table1','table2']