Re: Exit Status for Success and Failure in HiveQL queries

2012-08-15 Thread abhiTowson cal
hi Raihan, I was in the same situation before.See if this thing helps you. Hive command writes to a log file and you cat that file for the success pattern. Let me know if this will help you.Need any further help?? for log in $logdir1/*.hivelog; do cat $log | grep "success pattern" #&> /dev/nul

Re: Exit Status for Success and Failure in HiveQL queries

2012-08-15 Thread Raihan Jamal
show tables;" > RET_VAL=$? > if [ $RET_VAL -ne 0]; then >exit(1) > > - > > > > -- > From: jamalrai...@gmail.com > Date: Wed, 15 Aug 2012 17:03:14 -0700 > Subject: Exit Status for Success and Failure in HiveQL queries > To: u

RE: Exit Status for Success and Failure in HiveQL queries

2012-08-15 Thread hadoop hive
Status for Success and Failure in HiveQL queries To: user@hive.apache.org Does the hive command make use of an exit status for success vs. failure? I am asking this question as I am executing my few HiveQL queries from my Shell Script and If one HiveQL queries gets failed due to certain reaso

Exit Status for Success and Failure in HiveQL queries

2012-08-15 Thread Raihan Jamal
Does the hive command make use of an exit status for success vs. failure? I am asking this question as I am executing my few HiveQL queries from my Shell Script and If one HiveQL queries gets failed due to certain reasons, I want to abort my shell script at that moment only without executing other