List top 10 biggest files in a directory on
hadoop:
hadoop dfs -du /testfiles/hd|sort -g -r|head -n <N> {N here is the top number of file you want to list}
hadoop dfs -du /testfiles/hd|sort -g -r|head -n 10
List top 10 biggest file on hadoop(Recursively) :
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|head -n <N> {N here is the top numbers of files you want to list}
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|head -n 10
List top 10 smallest files in a directory on
hadoop:
hadoop dfs -du /testfiles/hd|sort -g -r|tail -n <N> {N here is the top number of file you want to list}
hadoop dfs -du /testfiles/hd|sort -g -r|tail -n 10
List top 10 smallest file on hadoop(Recursively) :
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|tail -n <N> {N here is the top numbers of files you want to list}
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|tail -n 10
hadoop dfs -du /testfiles/hd|sort -g -r|head -n <N> {N here is the top number of file you want to list}
hadoop dfs -du /testfiles/hd|sort -g -r|head -n 10
List top 10 biggest file on hadoop(Recursively) :
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|head -n <N> {N here is the top numbers of files you want to list}
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|head -n 10
hadoop dfs -du /testfiles/hd|sort -g -r|tail -n <N> {N here is the top number of file you want to list}
hadoop dfs -du /testfiles/hd|sort -g -r|tail -n 10
List top 10 smallest file on hadoop(Recursively) :
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|tail -n <N> {N here is the top numbers of files you want to list}
hadoop dfs -lsr /|awk '{print $5 "\t\t" $8}'|sort -n -r|tail -n 10
No comments:
Post a Comment
Thank you for Commenting Will reply soon ......