Hbase 刪除某一個列族
阿新 • • 發佈:2019-02-11
hbase shell中執行:
alter 'member', {NAME => 'address', METHOD => 'delete'}
報錯
ERROR: org.apache.hadoop.hbase.TableNotDisabledException: org.apache.hadoop.hbase.TableNotDisabledException: member
at org.apache.hadoop.hbase.master.HMaster.checkTableModifiable(HMaster.java:1488)
at org.apache.hadoop.hbase.master.handler.TableEventHandler.(TableEventHandler.java:72)
at org.apache.hadoop.hbase.master.handler.TableDeleteFamilyHandler.(TableDeleteFamilyHandler.java:41)
at org.apache.hadoop.hbase.master.HMaster.deleteColumn(HMaster.java:1393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:320)
at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1426)
需要先disable
disable 'member'
之後再刪除列族就好了。
describe 'member'
enable 'member'
alter 'member', {NAME => 'address', METHOD => 'delete'}
報錯
ERROR: org.apache.hadoop.hbase.TableNotDisabledException: org.apache.hadoop.hbase.TableNotDisabledException: member
at org.apache.hadoop.hbase.master.HMaster.checkTableModifiable(HMaster.java:1488)
at org.apache.hadoop.hbase.master.handler.TableEventHandler.(TableEventHandler.java:72)
at org.apache.hadoop.hbase.master.handler.TableDeleteFamilyHandler.(TableDeleteFamilyHandler.java:41)
at org.apache.hadoop.hbase.master.HMaster.deleteColumn(HMaster.java:1393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:320)
at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1426)
需要先disable
disable 'member'
之後再刪除列族就好了。
describe 'member'
enable 'member'