You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Tim Robertson <ti...@gmail.com> on 2011/03/12 19:46:12 UTC

Restoring configuration variables after issuing "set"

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?

Thanks,
Tim