hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuri Pradkin <y...@isi.edu>
Subject Re: [Streaming] How to pass arguments to a map/reduce script
Date Thu, 21 Aug 2008 21:53:41 GMT
Don't forget the double quotes.

On Thursday 21 August 2008 11:06:10 Steve Gao wrote:
> Unfortunately this does not work. Hadoop complains:
> 08/08/21 18:04:46 ERROR streaming.StreamJob: Unexpected arg1 while
> processing
> -input|-output|-mapper|-combiner|-reducer|-file|-dfs|-jt|-additionalconfspe
>c|-inputformat|-outputformat|-partitioner|-numReduceTasks|-inputreader|-mapd
>ebug|-reducedebug|||-cacheFile|-cacheArchive|-verbose|-info|-debug|-inputtag
>ged|-help

> I think you can simply do:
> ....  -file MAPPER -mapper "$MAPPER arg1 arg2" -file
> REDUCER -reducer "$REDUCER" ...



Mime
View raw message