hadoop - How to pass Columns itself as parameter in PIG scripts -
in pig script want pass column position parameter, please let me know how can achieve that
a = load '$path' using pigstorage(''); b = group $countcolpos; c = foreach b generate group,count(a); d = order c $0; store d '$tempcountdir';
here how can pass value $countcolpos, using -p option comma
this works me:
$ pig -p \$0 script.pig
you need escape dollar sign shell doesn't treat environmental variable.
Comments
Post a Comment