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
hdfs dfs -cat yourFile | shuf -n
Will do the trick for you.Though its not available on mac os. You can get installed GNU coreutils.