[
https://issues.apache.org/jira/browse/AMBARI-14707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107884#comment-15107884
]
Hudson commented on AMBARI-14707:
---------------------------------
FAILURE: Integrated in Ambari-branch-2.2 #221 (See
[https://builds.apache.org/job/Ambari-branch-2.2/221/])
AMBARI-14707. Hive view should return 400 (instead of 500) when the hive
(yusaku:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5a671e36f1d60f202def203dfd5f12565dd13014])
*
contrib/views/hive/src/main/java/org/apache/ambari/view/hive/utils/ServiceFormattedException.java
*
contrib/views/hive/src/main/java/org/apache/ambari/view/hive/client/HiveInvalidQueryException.java
* contrib/views/hive/src/main/java/org/apache/ambari/view/hive/client/Utils.java
*
contrib/views/hive/src/test/java/org/apache/ambari/view/hive/client/UtilsTest.java
> 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.2_branch-2.2.patch,
> 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)