wordcount-input.txt for wordcount.pig?



0

Where do i find wordcount-input.txt?  It is being used by wordcount.pig script.

pig /home/cloudera/class5/wordcount.pig

lines = LOAD '/user/cloudera/class3/wc-input/wordcount-input.txt' AS (line:chararray);
 

 

 


1 Answer(s)


0

Hi Sohail, You may use any text file as input. I used the data1.txt, present in Module 4 folder.

Regards, Sri

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password