ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [11/14] ambari git commit: AMBARI-20354: Files View: In non-HA environment, Files view executes with error when List of NameNodes property is cleared (sangeetar)
Date Thu, 27 Apr 2017 19:16:18 GMT
AMBARI-20354: Files View: In non-HA environment, Files view executes with error when List of
NameNodes property is cleared (sangeetar)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: 59f9ab216591983cc4dc1054e5a073cb9ccf91c9
Parents: 30eb73a
Author: Sangeeta Ravindran <sangeetar@apache.org>
Authored: Thu Apr 27 10:18:38 2017 -0700
Committer: Sangeeta Ravindran <sangeetar@apache.org>
Committed: Thu Apr 27 10:18:38 2017 -0700

----------------------------------------------------------------------
 .../org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/59f9ab21/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
----------------------------------------------------------------------
diff --git a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
index 714e229..df0fd96 100644
--- a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
+++ b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
@@ -280,7 +280,8 @@ public class ConfigurationBuilder {
     String nameservice = uri.getHost();
     String namenodeIDs = getProperty(HDFS_SITE, String.format(HA_NAMENODES_CLUSTER_PROPERTY,
nameservice),
       HA_NAMENODES_INSTANCE_PROPERTY);
-    return namenodeIDs != null;
+    LOG.debug("namenodeIDs " + namenodeIDs);
+    return !StringUtils.isEmpty(namenodeIDs);
   }
 
   private static boolean hasPort(String url) throws URISyntaxException {


Mime
View raw message