hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lenin Gali" <galile...@gmail.com>
Subject Re: Dynamic Configuration support in Hive SQL
Date Mon, 21 Mar 2011 15:35:00 GMT
Best way to do this is to write shell or python scripts and echo with substitute variables
and call hive from command line passing -f argument with output file.

Lenin
Sent from my BlackBerry® wireless handheld

-----Original Message-----
From: amit jaiswal <amit_jus@yahoo.com>
Date: Mon, 21 Mar 2011 08:10:55 
To: <user@hive.apache.org>
Reply-To: user@hive.apache.org
Subject: Dynamic Configuration support in Hive SQL

Hi,

Does hive support dynamic configuration? For example: is it possible to write a 
hive script with some ${PARAM} variables and let hive replace these parameters 
with their values at runtime.

Eg.
Original hive script:
select * from person where age > ${MIN_AGE};

Config file:
MIN_AGE=18

And hive replaces the MIN_AGE parameter automatically.

-amit

Mime
View raw message