Re: hive query not running in cron job

2012-11-23 Thread wd
This problem was caused by some env values not include when run by crontab, it's a common error for shell script writing . :)

Re: hive query not running in cron job

2012-11-23 Thread Chunky Gupta
Thanks, its working after adding this line :) Chunky. On Fri, Nov 23, 2012 at 11:24 AM, wd wrote: > Add the following line before your crontab config > > source ~/.bashrc > > > > On Thu, Nov 22, 2012 at 5:59 PM, Chunky Gupta wrote: > >> Hi, >> I have a python script :- >> >> ---c

Re: hive query not running in cron job

2012-11-22 Thread wd
Add the following line before your crontab config source ~/.bashrc On Thu, Nov 22, 2012 at 5:59 PM, Chunky Gupta wrote: > Hi, > I have a python script :- > > ---cron_script.py--- > > import os > import sys > from subprocess import call > print 'starting'

hive query not running in cron job

2012-11-22 Thread Chunky Gupta
Hi, I have a python script :- ---cron_script.py--- import os import sys from subprocess import call print 'starting' call(['hive', '-f', '/mnt/user/test_query'],stderr=open('/mnt/user/tmp/error','w'), stdout=open('/mnt/user/tmp/output','w')) --