Skip to main content

Read a file and print all lines in Hadoop


#1. Compile this code and run in hadoop like
#2. Put the "transaction.csv" into HDFS


hadoop jar Cat.jar org.myorg.Cat
#3. You will get the output in the console itself