You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vb...@apache.org on 2015/06/11 19:35:13 UTC

ambari git commit: AMBARI-11862. Unable To Enable NameNode HA Mode On Clean Cluster.(vbrodetskyi)

Repository: ambari
Updated Branches:
  refs/heads/trunk 3fc7682d6 -> 50be667fb


AMBARI-11862. Unable To Enable NameNode HA Mode On Clean Cluster.(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/50be667f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/50be667f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/50be667f

Branch: refs/heads/trunk
Commit: 50be667fbc30021842ee00ff92a5f1e1a34d80fe
Parents: 3fc7682
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Thu Jun 11 12:12:29 2015 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Thu Jun 11 12:12:29 2015 +0300

----------------------------------------------------------------------
 .../main/python/resource_management/libraries/functions/jmx.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/50be667f/ambari-common/src/main/python/resource_management/libraries/functions/jmx.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/jmx.py b/ambari-common/src/main/python/resource_management/libraries/functions/jmx.py
index be346e5..39d6bee 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/jmx.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/jmx.py
@@ -25,9 +25,9 @@ from resource_management.core.logger import Logger
 def get_value_from_jmx(qry, property, security_enabled, run_user, is_https_enabled):
   try:
     if security_enabled:
-      cmd = ['curl', '--negotiate', '-u', ':']
+      cmd = ['curl', '--negotiate', '-u', ':', '-s']
     else:
-      cmd = ['curl']
+      cmd = ['curl', '-s']
 
     if is_https_enabled:
       cmd.append("-k")
@@ -40,5 +40,5 @@ def get_value_from_jmx(qry, property, security_enabled, run_user, is_https_enabl
       data_dict = json.loads(data)
       return data_dict["beans"][0][property]
   except:
-    Logger.exception("Getting jmx metrics from NN failed. URL: " + str(qry))
+    Logger.logger.exception("Getting jmx metrics from NN failed. URL: " + str(qry))
     return None
\ No newline at end of file