You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2014/05/15 17:55:37 UTC
git commit: AMBARI-5776. ambari-server log has lots of ERROR jmx
(ncole)
Repository: ambari
Updated Branches:
refs/heads/branch-1.6.0 b1ac8e346 -> 0b8fdf2b9
AMBARI-5776. ambari-server log has lots of ERROR jmx (ncole)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/0b8fdf2b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0b8fdf2b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0b8fdf2b
Branch: refs/heads/branch-1.6.0
Commit: 0b8fdf2b9752dfb653ddaf7a76e11811b44241e7
Parents: b1ac8e3
Author: Nate Cole <nc...@hortonworks.com>
Authored: Thu May 15 11:01:46 2014 -0400
Committer: Nate Cole <nc...@hortonworks.com>
Committed: Thu May 15 11:01:53 2014 -0400
----------------------------------------------------------------------
.../server/controller/internal/AbstractProviderModule.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/0b8fdf2b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractProviderModule.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractProviderModule.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractProviderModule.java
index b8c4714..3fa0dff 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractProviderModule.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractProviderModule.java
@@ -243,7 +243,11 @@ public abstract class AbstractProviderModule implements ProviderModule, Resource
serviceDesiredProperties.get(service));
for (String compName : portMap.keySet()) {
- clusterJmxPorts.put(compName, getPortString(portMap.get(compName)));
+ // portString will be null if the property defined for the component doesn't exist
+ // this will trigger using the default port for the component
+ String portString = getPortString(portMap.get(compName));
+ if (null != portString)
+ clusterJmxPorts.put(compName, portString);
}
}
} catch (Exception e) {