java:无法在timestamp.hbase api处执行列族删除

7y4bm7vi  于 2021-06-07  发布在  Hbase
关注(0)|答案(0)|浏览(228)
Delete delete = new Delete(Bytes.toBytes("hello#2"),1585990109000l);
delete.addFamilyVersion(Bytes.toBytes("gretting"), 1585990109000l);
Table table;
try{table = connection.getTable(TableName.valueOf(TABLE_NAME));
    table.delete(delete);
    deleted =true;  
    LOG.info("deleted");
    table.close();
  } catch (IOException e) {                     
 e.printStackTrace();
}

结果:

java.lang.UnsupportedOperationException: Cannot perform column family deletion at timestamp.
    at com.google.cloud.bigtable.hbase.adapters.DeleteAdapter.throwOnUnsupportedDeleteFamilyVersion(DeleteAdapter.java:66) ~[bigtable-hbase-1.6.0.jar:na]
    at com.google.cloud.bigtable.hbase.adapters.DeleteAdapter.adaptMutations(DeleteAdapter.java:160) ~[bigtable-hbase-1.6.0.jar:na]
    at com.google.cloud.bigtable.hbase.adapters.DeleteAdapter.adaptMutations(DeleteAdapter.java:43) ~[bigtable-hbase-1.6.0.jar:na]
    at com.google.cloud.bigtable.hbase.adapters.MutationAdapter.adapt(MutationAdapter.java:48) ~[bigtable-hbase-1.6.0.jar:na]
    at com.google.cloud.bigtable.hbase.adapters.HBaseRequestAdapter.adapt(HBaseRequestAdapter.java:125) ~[bigtable-hbase-1.6.0.jar:na]

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题