[ 
https://issues.apache.org/jira/browse/AMBARI-5980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14019287#comment-14019287
 ] 

Xi Wang commented on AMBARI-5980:
---------------------------------

[~u39kun], I understand. 
We can parse property like 'jdk_location' in this way:  
data.RootServiceComponents.properties.jdk_location;
But as for property: 'java.home' and 'jdk.name' we cannot get the values in the 
same way, because there is '.' inside of the property name. 
For example, data.RootServiceComponents.properties.java.home  will not return 
'java.home' value but an error ' Cannot read property 'home' of undefined '. 
So that is why I stringified "data.RootServiceComponents.properties" and then 
using split and hardcoded array index to parse, etc.


> Usability: add JDK check in Host Checks UI
> ------------------------------------------
>
>                 Key: AMBARI-5980
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5980
>             Project: Ambari
>          Issue Type: Task
>          Components: client
>    Affects Versions: 1.6.1
>            Reporter: Xi Wang
>            Assignee: Xi Wang
>             Fix For: 1.6.1
>
>         Attachments: AMBARI-5980-new.patch, AMBARI-5980-part2.patch, 
> AMBARI-5980.patch, AMBARI-5980.patch, AMBARI-5980.patch
>
>
> We need to expand Host Checks to include JDK check.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to