查看文本行数
hadoop fs -cat hdfs://172.168.0.11:8020/test/says_dict/sysdict_type.data |wc -l

查看文件大小(单位byte)
hadoop fs -du hdfs://172.168.0.11:8020/test/says_dict/*

hadoop fs -count hdfs://172.168.0.11:8020/test/says_dict/*

随机返回指定行数的样本数据
hadoop fs -cat /test/gonganbu/scence_suggestions/* | shuf -n 5

返回前几行的样本数据
hadoop fs -cat /test/gonganbu/scence_suggestions/* | head -100

返回最后几行的样本数据
hadoop fs -cat /test/gonganbu/scence_suggestions/* | tail -5

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐