Usually if DDL fails, query is displayed one line above line with keyword Failed
bash> cat CTASchybne2.log | grep -n -B 1 FAILED 4-create table SCHEMA.AAA stored as orc as select * from SCHEMA.AAA 5:FAILED: SemanticException org.apache.hadoop.hive.ql.parse.SemanticException: Table already exists: SCHEMA.AAA -- From: neelima g [mailto:[email protected]] Sent: pondělí 28. listopadu 2016 18:44 To: [email protected] Subject: Re: Need error logging advice on batch processing Brotanek, hive -f file.txt hiveconf hive.cli.errors.ignore=true 2&> file.log and then grep for keywords *Exception* Have you ever tried capturing what all hive queries failed i.e entire query.I am looking for line number of query in file or queries failed? Errors are in the format like : FAILED: SemanticException [Error 10072]: Database does not exist: xxxxx Please suggest if anyone know solution. Neelima On Mon, Nov 28, 2016 at 7:59 AM, Brotanek, Jan <[email protected]<mailto:[email protected]>> wrote: Hello, you can log like this: hive -f file.txt hiveconf hive.cli.errors.ignore=true 2&> file.log and then grep for keywords *Exception* From: neelima g [mailto:[email protected]<mailto:[email protected]>] Sent: pondělí 28. listopadu 2016 16:15 To: [email protected]<mailto:[email protected]> Subject: Need error logging advice on batch processing Hi, I want to run batch mode task like and i am using hiveconf hive.cli.errors.ignore=true hive -f file.txt hiveconf hive.cli.errors.ignore=true And my requirement is find what all queries failed after execution. Is that possible ? And i have create statements in the queries..it is DDL.
