1.查看目录所占空间
$ hdfs dfs -du -s -h /user/hive/warehouse/xx 1.7 G /user/hive/warehouse/xx
2.查看存储使用情况
$ hdfs dfsadmin -report Configured Capacity: 0(0 PB) Present Capacity: 0(0 PB) DFS Remaining: 0(0 TB) DFS Used: 0(0 PB) DFS Used%: 0% Under replicated blocks: 0 Blocks with corrupt replicas: 1 Missing blocks: 0 Missing blocks (with replication factor 1): 0
3.vim
shift+g(G):最后一行 gg:第一行 也可:0
find /opt/edw/ -name xx* # 根据文件名查找文件 grep -rn "xx" /opt/edw/ # 查看含某字符串的文件
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)