I am having a 2 GB data in my HDFS.
2 GB
HDFS
Is it possible to get that data randomly. Like we do in the Unix command line
cat iris2.cs
Write this command
sudo -u hdfs hdfs dfs -cat "path of csv file" |head -n 50
50 is number of lines(this can be customize by the user based on the requirements)