Another simple option for Pig 0.9 without using the SKIP_INPUT_HEADER option can be done as follows:
Input file (input.txt)
input.txt
Name,Age,Location a,10,chennai b,20,banglore
PigScript: (without using the SKIP_INPUT_HEADER option, since this option is not available in Pig 0.9)
register '<Your location>/piggybank.jar'; d_with_headers = LOAD 'input.csv' using org.apache.pig.piggybank.storage.CSVExcelStorage() AS (name:chararray, age:long, location:chararray); d = FILTER places_with_headers BY name!='Name'; dump d;
Output:
(a,10,chennai) (b,20,banglore)
source share