30901/hadoop-hdfs-how-to-count-number-of-lines
You can count the number of lines using spark:
myfile = spark.textFile("hdfs://...") mycount = myfile.count(); mycount.dump();
This will output the number of lines in the file.
Here also in case of Hadoop, it is ...READ MORE
Use the below commands: Total number of files: hadoop ...READ MORE
You can use the hadoop fs -ls command to ...READ MORE
Yes. you can use the hadoop fsck command to do ...READ MORE
Firstly you need to understand the concept ...READ MORE
org.apache.hadoop.mapred is the Old API org.apache.hadoop.mapreduce is the ...READ MORE
Hi, You can create one directory in HDFS ...READ MORE
In your case there is no difference ...READ MORE
hadoop fs -cat /example2/doc1 | wc -l READ MORE
COUNT is part of pig LOGS= LOAD 'log'; LOGS_GROUP= ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.