Repository: ambari Updated Branches: refs/heads/branch-2.1 5b9d1a524 -> f334f0944
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/f334f094 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f334f094 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f334f094 Branch: refs/heads/branch-2.1 Commit: f334f0944ed1f7b3f4fedde71db0d5fff9ccb93c Parents: 5b9d1a5 Author: Vitaly Brodetskyi <[email protected]> Authored: Thu Jun 11 12:15:27 2015 +0300 Committer: Vitaly Brodetskyi <[email protected]> Committed: Thu Jun 11 12:15:27 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/f334f094/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
