Repository: ambari Updated Branches: refs/heads/branch-2.5 8a7bac7e9 -> 3048706a9
AMBARI-19467. Custom jdk built for PPC architecture - making it easier for PPC users to pick the right JDK. (aonishuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3048706a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3048706a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3048706a Branch: refs/heads/branch-2.5 Commit: 3048706a9cf4331c954f8aea70d4caa776c1687d Parents: 8a7bac7 Author: Andrew Onishuk <[email protected]> Authored: Wed Jan 11 18:05:41 2017 +0200 Committer: Andrew Onishuk <[email protected]> Committed: Wed Jan 11 18:05:41 2017 +0200 ---------------------------------------------------------------------- ambari-server/src/main/python/ambari_server/serverSetup.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/3048706a/ambari-server/src/main/python/ambari_server/serverSetup.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/python/ambari_server/serverSetup.py b/ambari-server/src/main/python/ambari_server/serverSetup.py index aef3d8d..cf91a6d 100644 --- a/ambari-server/src/main/python/ambari_server/serverSetup.py +++ b/ambari-server/src/main/python/ambari_server/serverSetup.py @@ -463,6 +463,10 @@ class JDKSetup(object): if self.jdk_index == self.custom_jdk_number: print_warning_msg("JDK must be installed on all hosts and JAVA_HOME must be valid on all hosts.") print_warning_msg(jcePolicyWarn) + if get_silent(): + print_error_msg("Path to JAVA_HOME should be specified via -j option.") + sys.exit(1) + args.java_home = get_validated_string_input("Path to JAVA_HOME: ", None, None, None, False, False) if not os.path.exists(args.java_home) or not os.path.isfile(os.path.join(args.java_home, "bin", self.JAVA_BIN)): err = "Java home path or java binary file is unavailable. Please put correct path to java home."
