hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad Ruderman <bruder...@radiumone.com>
Subject Re: how to know a hive query failed
Date Wed, 17 Jul 2013 03:03:22 GMT
You need to stream and read the stderr and stdout for text messages
alerting there is an error. In python this is what I use:


On Tue, Jul 16, 2013 at 7:42 PM, kentkong_work <kentkong_work@163.com>wrote:

> **
> hi,
>     I use a shell script to run hive query in background, like this
>     hive -e "select uname, age from usertable" >> result.csv &
>
>     sometimes, the hive query failed, but I can't find.
>     only thing I can do is waiting for long time, 5 or 6 hours, if I still
> can't see the result.csv, I know the query failed.
>     is there some way to let hive tell me the query failed?
>
>
> Kent
>

Mime
View raw message