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

Srimanth Gunturi updated AMBARI-11194:
--------------------------------------
    Attachment: AMBARI-11194.patch

Tested fix on cluster.

Tests pass:
{code}
     [exec]
     [exec]   5495 tests complete (8 seconds)
     [exec]   62 tests pending
     [exec]
[INFO] Executed tasks
[INFO]
[INFO] --- apache-rat-plugin:0.11:check (default) @ ambari-web ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: .idea/**
[INFO] Exclude: package.json
[INFO] Exclude: public/**
[INFO] Exclude: public-static/**
[INFO] Exclude: app/assets/**
[INFO] Exclude: vendor/**
[INFO] Exclude: node_modules/**
[INFO] Exclude: npm-debug.log
[INFO] 1042 resources included (use -debug for more details)
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 
approved: 1042 licence.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.574s
[INFO] Finished at: Sat May 16 19:07:05 PDT 2015
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------
{code}

> UI calls to /validations fails due to empty host-to-component mappings on 
> large clusters
> ----------------------------------------------------------------------------------------
>
>                 Key: AMBARI-11194
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11194
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.0.1
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>            Priority: Blocker
>             Fix For: 2.0.1
>
>         Attachments: AMBARI-11194.patch
>
>
> Setup a large cluster (>100 hosts) using Ambari-2.0.1 and after install go to 
> HDFS service and change a config and save. The below exception will be hit 
> during configs validation phase
> {noformat}
> Stack_advisor.out:
> StackAdvisor implementation for stack HDP, version 2.0.6 was loaded
> StackAdvisor implementation for stack HDP, version 2.1 was loaded
> StackAdvisor implementation for stack HDP, version 2.2 was loaded
> Returning HDP22StackAdvisor implementation
> Error occured in stack advisor.
> Error details: u'c6401.ambari.apache.org'
> stack_advisor.err:
> Traceback (most recent call last):
>   File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 146, 
> in <module>
>     main(sys.argv)
>   File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 105, 
> in main
>     result = stackAdvisor.validateConfigurations(services, hosts)
>   File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", 
> line 445, in validateConfigurations
>     validationItems = self.getConfigurationsValidationItems(services, hosts)
>   File 
> "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.0.6/services/stack_advisor.py",
>  line 275, in getConfigurationsValidationItems
>     clusterWideItems = self.validateClusterConfigurations(configurations, 
> services, hosts)
>   File 
> "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.0.6/services/stack_advisor.py",
>  line 294, in validateClusterConfigurations
>     requiredMemory = 
> getMemorySizeRequired(hostComponents[host["Hosts"]["host_name"]], 
> configurations)
> KeyError: u'c6401.ambari.apache.org'
> {noformat}
> Configs will not be saved.



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

Reply via email to