You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2015/05/27 21:26:21 UTC

[jira] [Reopened] (AMBARI-11261) Stack advisor should handle when 'ranger-hive-plugin-properties' not provided

     [ https://issues.apache.org/jira/browse/AMBARI-11261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srimanth Gunturi reopened AMBARI-11261:
---------------------------------------

Reproduced with HIVE, HBASE (stack 2.3).
Please check on cluster with all services selected to install.

{code}ambari-server --hash
af7cc7480afc02c88838c31889f4f2959a391765{code}

On of the error-logs:
{code}
[root@ol-1 ~]# cat /var/run/ambari-server/stack-recommendations/35/stackadvisor.err
Traceback (most recent call last):
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 154, in <module>
    main(sys.argv)
  File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 113, in main
    result = stackAdvisor.validateConfigurations(services, hosts)
  File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 464, in validateConfigurations
    validationItems = self.getConfigurationsValidationItems(services, hosts)
  File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.0.6/services/stack_advisor.py", line 341, in getConfigurationsValidationItems
    resultItems = method(siteProperties, siteRecommendations, configurations, services, hosts)
  File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.3/services/stack_advisor.py", line 168, in validateHBASEConfigurations
    ranger_plugin_enabled = ranger_plugin_properties['ranger-hbase-plugin-enabled']
TypeError: 'NoneType' object is unsubscriptable
{code}

> Stack advisor should handle when 'ranger-hive-plugin-properties' not provided
> -----------------------------------------------------------------------------
>
>                 Key: AMBARI-11261
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11261
>             Project: Ambari
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: 2.1.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-11261.patch, AMBARI-11261_2.patch
>
>
> When Ranger is not installed, 'ranger-hive-plugin-properties' configs are not provided. However the backend stack-advisor always expects them. 
> Server returns:
> {noformat}
> {
>   "status" : 500,
>   "message" : "Stack Advisor reported an error: TypeError: 'NoneType' object is unsubscriptable\nStdOut file: /var/run/ambari-server/stack-recommendations/58/stackadvisor.out\n\nStdErr file: /var/run/ambari-server/stack-recommendations/58/stackadvisor.err"
> }
> {noformat}
> Stack-advisor should tolerate when 'ranger-hive-plugin-properties' are not provided.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)