hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Kommireddi <prash1...@gmail.com>
Subject Re: Commands not working properlry when stored in pig file
Date Wed, 27 Mar 2013 21:56:01 GMT
Check hdfs to see if this really exists
hdfs://user/lnindrakrishna/exp/03272013/part-r-00000

On Wed, Mar 27, 2013 at 2:40 PM, Mix Nin <pig.mixed@gmail.com> wrote:

> I  wrote a pig script as follows and stored it in x.pig file
>
> Data = LOAD '/....' as (,,,, )
> NoNullData= FILTER Data by qe is not null;
> STORE (foreach (group NoNullData all) generate flatten($1))  into
> 'exp/$inputDatePig';
>
>
> evnt_dtl =LOAD 'exp/$inputDatePig/part-r-00000' AS (cust,,,,,)
>
>
>
> I executed the command as follows
>
> pig  -f x.pig -param inputDatePig=03272013
>
>
> And  finally it says exp/03272013 tough the directory exists as it gets
> created in STORE command.
>
> What is wrong in this
>

Mime
View raw message