ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Levas" <>
Subject Re: Review Request 36052: Host check for JDK does not fail when custom JDK is not found
Date Sat, 04 Jul 2015 11:55:43 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated July 4, 2015, 7:55 a.m.)

Review request for Ambari, Andrew Onischuk, Florian Barca, and Vitalyi Brodetskyi.


Fixed issue with patch.  Moved added block to correct `if` clause.

Bugs: AMBARI-12218

Repository: ambari


The host check for JDK does not fail when needed if the JDK is changed to manual when running
`ambari-server setup` the 2nd time. 

If the JDK is to be manually installed and one or more hosts do not have one installed (or
it cannot be found during the host check), the JDK host check should fail.  However if `ambari-server
setup` is run multiple times where the first time an automated JDK installation is chosen
then the manual option is chosen, the `` property remains set, _confusing_ the host
check process and thus not failing the check.

# Steps to reproduce
1. Install ambari-server
2.  install custom JDK on ambari host, only - do not install the JDK anywhere else
3.  Execute `ambari-server setup -s`
4.  Execute `ambari-server setup`
5.  Choose to change the Oracle JDK
6.  Select option #3 (Custom JDK)
7.  Enter a valid path to a JDK
8.  Complete setup
9.  Start Ambari 
10.  Start to create a cluster
11.  Enter hosts
12.  After the host check, look at the warnings and see that *no error* exists for hosts where
a JDK was not found

# Solution
Ensure that `` and `` are not set in the file when the custom
JDK option is specified.

Diffs (updated)

  ambari-server/src/main/python/ambari_server/ a5060eb 




Robert Levas

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message