Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Returns the number of rows of random sample data
hadoop fs -cat / test / gonganbu / scene_analysis_suggestion / * | shuf -n 5
Return the first few rows of sample data
hadoop fs -cat / test / gonganbu / scene_analysis_suggestion / * | head -100
Returns the last few lines of sample data of
hadoop fs -cat / test / gonganbu / scene_analysis_suggestion / * | tail -5
View the number of lines of text
hadoop fs -cat hdfs: //172.16.0.226: 8020 / test / sys_dict / sysdict_case_type.csv | wc -l
View File Size (byte)
hadoop FS -du HDFS: //172.16.0.226: 8020 / the Test / sys_dict / *
hadoop fs -count hdfs://172.16.0.226:8020/test/sys_dict/*