Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98C7118958 for ; Mon, 18 Jan 2016 13:50:40 +0000 (UTC) Received: (qmail 14509 invoked by uid 500); 18 Jan 2016 13:50:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 14461 invoked by uid 500); 18 Jan 2016 13:50:40 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 14255 invoked by uid 99); 18 Jan 2016 13:50:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2016 13:50:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DFCA92C1F58 for ; Mon, 18 Jan 2016 13:50:39 +0000 (UTC) Date: Mon, 18 Jan 2016 13:50:39 +0000 (UTC) From: "Hadoop QA (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-14707) Hive view should return 400 (instead of 500) when the hive query cannot be compiled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-14707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105295#comment-15105295 ] Hadoop QA commented on AMBARI-14707: ------------------------------------ {color:green}+1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12782860/AMBARI-14707_branch-2.2.patch against trunk revision . {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:green}+1 tests included{color}. The patch appears to include 1 new or modified test files. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings. {color:green}+1 core tests{color}. The patch passed unit tests in contrib/views/hive. Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/4958//testReport/ Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4958//console This message is automatically generated. > Hive view should return 400 (instead of 500) when the hive query cannot be compiled > ------------------------------------------------------------------------------------ > > Key: AMBARI-14707 > URL: https://issues.apache.org/jira/browse/AMBARI-14707 > Project: Ambari > Issue Type: Bug > Components: ambari-views > Affects Versions: 2.1.2 > Reporter: Gaurav Nagar > Assignee: Gaurav Nagar > Fix For: 2.2.1 > > Attachments: AMBARI-14707_branch-2.2.patch > > > When user submit invalid hive query, hive view should return 400 response code (Bad request) instead of 500 (server error) > Currently if invalid query is submitted, jobs url returns 500 response code: > /api/v1/views/HIVE/versions/1.0.0/instances/AUTO_HIVE_INSTANCE/jobs > 11/18/2015 8:27:33 PM [qtp-client-68] ERROR org.apache.ambari.view.hive.utils.ServiceFormattedException - H110 Unable to submit statement. Error while compiling statement: FAILED: ParseException line 1:0 cannot recognize input near 'OAD' 'DATA' 'INPATH' [ERROR_STATUS] > 11/18/2015 8:27:33 PM [qtp-client-68] ERROR org.apache.ambari.view.hive.utils.ServiceFormattedException - org.apache.ambari.view.hive.client.HiveErrorStatusException: H110 Unable to submit statement. Error while compiling statement: FAILED: ParseException line 1:0 cannot recognize input near 'OAD' 'DATA' 'INPATH' [ERROR_STATUS] > org.apache.ambari.view.hive.client.HiveErrorStatusException: H110 Unable to submit statement. Error while compiling statement: FAILED: ParseException line 1:0 cannot recognize input near 'OAD' 'DATA' 'INPATH' [ERROR_STATUS] -- This message was sent by Atlassian JIRA (v6.3.4#6332)