You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "yeshwanth (JIRA)" <ji...@apache.org> on 2015/09/17 08:15:45 UTC
[jira] [Commented] (AMBARI-7210) BE: Stack advisor scripts should
report python errors in API
[ https://issues.apache.org/jira/browse/AMBARI-7210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14791631#comment-14791631 ]
yeshwanth commented on AMBARI-7210:
-----------------------------------
i am facing this issue while setting up HDP 2.3 using ambari 2.1
here's the full log http://pastebin.com/6pPr2eNb
and screenshot http://imagebin.ca/v/2FvWc6JQ8Kgi
how to resolve the issue
> BE: Stack advisor scripts should report python errors in API
> ------------------------------------------------------------
>
> Key: AMBARI-7210
> URL: https://issues.apache.org/jira/browse/AMBARI-7210
> Project: Ambari
> Issue Type: Task
> Components: ambari-server
> Affects Versions: 1.7.0
> Reporter: Srimanth Gunturi
> Assignee: Srimanth Gunturi
> Fix For: 1.7.0
>
> Attachments: AMBARI-7210.patch
>
>
> If anything goes wrong in the stack-advisor scripts, it should be propagated to the API response so that the user can take appropriate action.
> For example in script's main() I threw an exception
> {code}
> raise StackAdvisorException("I will fail!")
> {code}
> However the API response was
> {code}
> 400 - Bad Request
> Error occured during stack advisor command invocation
> {code}
> Any _StackAdvisorException_ means a semantic issues, and should be reported as {{400-Bad Request <message>}}.
> Any other exceptions should be returned as {{500-Internal Server Error <message>}}.
> Any other types of failures should also be accounted for (compilation issues, NPEs, etc.)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)