impala cache功能测试

来源:互联网 发布:txt转mobi mac 编辑:程序博客网 时间:2024/06/01 11:48
创建指定大小的cache
hdfs cacheadmin -addPool impala_pool -owner impala -limit 20000000000
把表加入cache中
alter table ym_impala_with_cache set cached in 'impala_pool';
查看表cache状态
show table stats ym_impala_with_cache;
hdfs cacheadmin -listPools -stats impala_pool;
hdfs dfsadmin -report
删除cache:
alter table ym_impala_with_cache set uncached;
把表分区加入到cache中:

alter table census partition (year=1960) set cached in 'pool_name';

测试数据37460946条

测试结果表明加不加缓存影响不明显,速度差不多。



1 0
原创粉丝点击