I'm trying to count the number of lines in a file in hdfs
/HIVE
. There are some cases where I want the number of lines of the entire table in HIVE
, and some cases where I want the number of lines just in a file in HIVE
.
I've tried some things like !hadoop fs -count /<path to file(s)/
, but this only gives the FILE COUNT
, then CONTENT_SIZE
. from here
How do I get the number of lines?