with your shell script calculate your start date and end date
hive $HIVEPARAMS -hiveconf startdate="$var1"  -hiveconf enddate="$var2"

also set in ..hiverc
set hive.variable.substitute=true;


On Sun, Aug 24, 2014 at 10:19 AM, karthik Srivasthava <
karthiksrivasth...@gmail.com> wrote:

> As my raw-data table is partitioned by date.. i want to get data to run a
> query every days to find top 10 products in last 15 days .
>
> How to pass list of dates dynamically as arguments in hive query using
> hiveconf?
>
>
>


-- 
Nitin Pawar

Reply via email to