Repository: ambari
Updated Branches:
  refs/heads/trunk 2c4809000 -> d6b7c20be


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/d6b7c20b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d6b7c20b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d6b7c20b

Branch: refs/heads/trunk
Commit: d6b7c20be8a4077c66bf52f83c066f07914821fc
Parents: 2c48090
Author: Andrew Onishuk <[email protected]>
Authored: Wed Jan 11 18:06:44 2017 +0200
Committer: Andrew Onishuk <[email protected]>
Committed: Wed Jan 11 18:06:44 2017 +0200

----------------------------------------------------------------------
 ambari-server/src/main/python/ambari_server/serverSetup.py | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d6b7c20b/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..7e2167d 100644
--- a/ambari-server/src/main/python/ambari_server/serverSetup.py
+++ b/ambari-server/src/main/python/ambari_server/serverSetup.py
@@ -463,6 +463,11 @@ 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."

Reply via email to