JobDetails and jobstatus

Nov 15, 2013 at 12:21 PM
i'm playing around with submitting hive jobs and I'm trying to figure out when the fail. For example if I submit a create table request, and there is bad syntax in it (I used the date type which isn't supported), the job status says complete, not failed.

I can get the detailed error from the error stream, but I thought I'd be able to check the status of the job to see if it failed.

Am I missing something?
Nov 15, 2013 at 7:10 PM
You can use ExitCode of the job as a reliable mechanism to detect if it's failed. Non-zero value indicates failure.

Marked as answer by halirob on 11/15/2013 at 12:12 PM
Nov 15, 2013 at 7:12 PM
terrific, that works thanks..