Re: query parameters in hive

2012-02-13 Thread Evan Pollan
Sure -- use -hiveconf X=Y, which allows your script to reference ${hiveconf:X} On Feb 13, 2012, at 7:19 AM, "Wojciech Langiewicz" wrote: > Hello, > Is it possible (and how) to pass parameters to hive scripts from command > line? > I would imagine something like: > hive -f xyz.sql -p date='2012

query parameters in hive

2012-02-13 Thread Wojciech Langiewicz
Hello, Is it possible (and how) to pass parameters to hive scripts from command line? I would imagine something like: hive -f xyz.sql -p date='2012-02-13' which will substitute any occurrence of $date string in xyz.sql file. I've searched wiki and list archive, but I didn't find any clues about