Apache Pig CSV loader

24 Apr 2013

It seems we cannot use `CSVLoader, but we need to use ``CSVExcelStorage```.

Here is an example:

data = LOAD 'something.csv' USING org.apache.pig.piggybank.storage.CSVExcelStorage() AS (user_id: int, country: chararray);

Oh, man, the documentation is so confusing. `CSVLoaderdoesn't have an example; ``CSVExcelStorage``` has an example, but it is only for storing.

Give it a kudos