Member since
09-21-2018
1
Post
0
Kudos Received
0
Solutions
09-21-2018
02:53 PM
To get the sum of count all rows in a directory, you can follow the below. a=0 for i in `hdfs dfs -ls -R <DIRECTORY_PATH> | awk '{print $8}'`;
do
echo $i ;
b="`hdfs dfs -cat $i | wc -l`";
a=`expr $a + $b` echo $a; done
... View more