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
You can use head command in Hadoop too! Syntax would be
hdfs dfs -cat | head -n 3
This will print only three lines from the file.