Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive >> mail # user >> Exit Status for Success and Failure in HiveQL queries


+
Raihan Jamal 2012-08-16, 00:03
+
abhiTowson cal 2012-08-16, 01:06
+
hadoop hive 2012-08-16, 00:10
Copy link to this message
-
Re: Exit Status for Success and Failure in HiveQL queries
Let me try that.. Thanks for the help.
*Raihan Jamal*

On Wed, Aug 15, 2012 at 5:10 PM, hadoop hive <[EMAIL PROTECTED]> wrote:

> Hey Jamal,
>    You can use bash shell script combined with hive query, in shell script
> you can check for exit status.
> E.g :
> #!/bin/bash
> hive -e "show tables;"
> RET_VAL=$?
> if [ $RET_VAL -ne 0]; then
>    exit(1)
>
> -
>
>
>
> ------------------------------
> From: [EMAIL PROTECTED]
> Date: Wed, 15 Aug 2012 17:03:14 -0700
> Subject: Exit Status for Success and Failure in HiveQL queries
> To: [EMAIL PROTECTED]
>
>
> 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
> HiveQL queries.
>
>
>
>
> *Raihan Jamal*
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB