1.phoenix删除表 同样也会删掉hbase 中对应表。
测试:
在hbase shell 中建表:
create 'SCORE','A', 'B'
put 'SCORE','Tom','A:M','5'
put 'SCORE','Lilei','B:M','5'
结果:
hbase(main):009:0> scan 'SCORE'
ROW COLUMN+CELL
Lilei column=B:M, timestamp=1427679080104, value=5
Tom column=A:M, timestamp=1427679078854, value=5
然后phoenix client端建表:
create table "SCORE" (pk VARCHAR primary key,"A"."M" VARCHAR ,"B"."M" VARCHAR );
select * from score;
结果:
+------------+------------+------------+
| PK | M | M |
+------------+------------+------------+
| Lilei | null | 5 |
| Tom | 5 | null |
+------------+------------+------------+
drop table score;
2 rows affected (0.316 seconds);
此时hbase中表还在,但是已经没哟数据了。
hbase-site.xml
配置了 phoenix.schema.dropMetaData 为true;
此为测试结果总结。