分享知识,分享快乐

0%

hive数据库限制容量

hive数据库限制容量

操作前
检查是否需要扩容配额
sudo su - hdfs
hdfs dfs -count -q -h /user/hive/warehouse/yz.db
操作过程
实施
sudo -u hdfs hdfs dfsadmin -setSpaceQuota 40G /user/hive/warehouse/yz.db
操作后
验证
hdfs dfs -count -q -h /user/hive/warehouse/yz.db