hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mix Nin <pig.mi...@gmail.com>
Subject header of a tuple/bag
Date Tue, 16 Jul 2013 18:04:52 GMT

I am trying query a data set on HDFS using PIG.

Data = LOAD '/user/xx/20130523/*;
x = FOREACH Data GENERATE cookie_id;

I get below error.

<line 2, column 26> Invalid field projection. Projected field [cookie_id]
does not exist

How do i find the column names in the bag "Data" .  The developer who
created the file says, it is coookie_id.
Is there any way I could get schema/header for this?


View raw message