hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Robertson <>
Subject Restoring configuration variables after issuing "set"
Date Sat, 12 Mar 2011 18:46:12 GMT
Hi all

Can someone please tell me how to achieve the following in a single hive script?

set original_value = mapred.reduce.tasks;
set mapred.reduce.tasks=1;
... do stuff
set mapred.reduce.tasks=original_value;

It is the first and last lines that don't work - is it possible?


View raw message