赞
踩
方法一:
在hue界面的hive下找到相应的表,即可看到表的行数和大小等信息。
方法二编写脚本,
[root@namenode01 hive]# cat count_tables.sh
myorder=1mysql> use hive
select * from TBLS where TBL_NAME='call_center';
mysql> select a.TBL_ID, a.TBL_NAME, b.PARAM_KEY, b.PARAM_VALUE from TBLS as a join TABLE_PARAMS as b where a.TBL_ID = b.TBL_ID and TBL_NAME="web_sales" and PARAM_KEY="numRows";Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。