Hi Guys,

I have a list of file paths in a pig variable called "path" and how would I
iterate over it and run fs commands on it? I am specifically trying to copy
each file to another location in HDFS.

grunt> dump path;

(/user/andy/output_data/000000_0)

(/user/andy/tmp_j)

(/user/andy/tmp_l)


I want to do something like this.


B = FOREACH path 'fs -cp B /user/andy/new/'


Thanks,
Andy

Reply via email to