I have a file on HDFS that I want to know how many lines are. (testfile)
In linux, I can do:
wc -l
Can I do somet
Total number of files: hadoop fs -ls /path/to/hdfs/* | wc -l
hadoop fs -ls /path/to/hdfs/* | wc -l
Total number of lines: hadoop fs -cat /path/to/hdfs/* | wc -l
hadoop fs -cat /path/to/hdfs/* | wc -l
Total number of lines for a given file: hadoop fs -cat /path/to/hdfs/filename | wc -l
hadoop fs -cat /path/to/hdfs/filename | wc -l